<commit_before><commit_msg>Commit first draft<commit_after>#include <Encoder.h>

Encoder myEnc(7, 8);

int vitesse = 50;
void setup() {
   pinMode(9, OUTPUT);
   pinMode(10, OUTPUT);
   pinMode(11, OUTPUT);
   pinMode(12, OUTPUT);

   analogWriteFrequency(9, 16000);
   analogWriteFrequency(10, 16000);

   Serial.begin(9600);
   Serial.println("Basic Encoder Test:");
   // left
   analogWrite(9, vitesse);
   digitalWrite(11, HIGH);

   // right
   analogWrite(10, vitesse);
   digitalWrite(12, HIGH);
}

long oldPosition  = -999;

void loop() {
   /*  long newPosition = myEnc.read();
   if (newPosition != oldPosition) {
     oldPosition = newPosition;
     Serial.println(newPosition);

     double speed = (5000 - newPosition);
     Serial.print("p= ");
     Serial.print(newPosition);
     Serial.print(", speed= ");
     Serial.println(speed);

     if (speed > 0) {
       analogWrite(10, speed > 60 ? 60 : speed);
       digitalWrite(11, LOW);
     } else {
       analogWrite(10, -speed > 60 ? 60 : - speed);
       digitalWrite(11, HIGH);
     }*/

	if (Serial.available() > 0) {
		int incomingByte = Serial.parseInt();
		Serial.print("USB received: ");
		Serial.println(incomingByte);
               analogWrite(9, incomingByte);
	}

     // left

}

{'fraction_non_alphanumeric': 0.15122723673792557, 'fraction_numerical': 0.04829770387965162, 'mean_word_length': 2.95, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3553386', 'n_tokens_mistral': 471, 'n_tokens_neox': 429, 'n_words': 91}