   
   pinMode(pinLeftMotor,OUTPUT);
   pinMode(pinRightMotor,OUTPUT);
+  pinMode(pinLeftDirection,OUTPUT);
+  pinMode(pinRightDirection,OUTPUT);
 }
 
 void loop() {
-  if (periode>1600000){
+  if (period>1600000){
     voltmetre();
-    periode=0;
+    period=0;
     //Serial.println("loop");
   }
   

      }
  
  } 
  periode++;
 }
 
 

    //else Serial.println("error");
}
 
/* 
void glowingLED(int periodeLED){
 for(int fadeValue = 0 ; fadeValue <= 255; fadeValue +=5) { 
    analogWrite(pinLED, fadeValue);         
