 #include <ESP8266WiFi.h>
 
 
-const int leftF = 1;
+const int leftF = -1;
 const int rightF = 1; 
 const int pinL = 4;
 const int pinR = 5;

    stopedL = true;
  }
}

void moveR(){
  stopL();
  if(stopedR){
    servoRight.attach(pinR);
    stopedR = false;
  }
  servoRight.write(360*rightF);
  lastCommand = millis(); 
}

void moveL(){
  stopR();
  if(stopedL){
    servoLeft.attach(pinL);
    stopedL = false;
  }
  servoLeft.write(360*leftF);
  lastCommand = millis();  
}

void moveF(){
  if(stopedL){
    servoLeft.attach(pinL);
  }
  if(stopedR){
    servoRight.attach(pinR);
  }
  servoLeft.write(360*leftF); 
  stopedL = false;
  servoRight.write(360*rightF); 
  stopedR = false;
  lastCommand = millis(); 
}

void moveB(){
  if(stopedL){
    servoLeft.attach(pinL);
  }
  if(stopedR){
    servoRight.attach(pinR);
  }
  servoLeft.write(-360*leftF); 
  stopedL = false;
  servoRight.write(-360*rightF); 
  stopedR = false;
  lastCommand = millis(); 
}

void stopAll(){
  stopR();
  stopL();
}

void setup() {

//  Serial.println(millis() - lastCommand);
//  Serial.println(stopedL);
//  Serial.println(stopedR);
//  if( (millis() - lastCommand) >= 2000){
//      Serial.println("stop");
//      stopAll();
//    }
}
