//================= functionsMotor =================
void motor(int speed){
   if(speed >= 0){
       analogWrite(pinMotor1, speed);
       digitalWrite(pinDirection1,LOW);
     }
   else{
      analogWrite(pinMotor1, 256+speed);
      digitalWrite(pinDirection1,HIGH);
    }
 }
  //================================================

