// wokwi resluts: OK
//ARDUINO TEST: OK
// ESP IS NOT WORKING THE SAME LIKE ARDUINO
// يختلف عن الأردوينو في طريقة عمل الوظيفة
// حيث لابد من تسمية السيرفو باسم مختلف لكل مخرج
// the letters (x,y) does not affect the names of the servos ...
// ...they are only integer numbers.
// the letters (s,t) they affect the resluts.
#include <Servo.h>
//unsigned long previousMillis;
//const unsigned long interval = 10; // 10 or 20 milliseconds are common values
/*
Servo servo3;
Servo servo4;
Servo servo5;
*/
void setup()
{
int x=1;
int y=2;
int s=7;
int t=8;
Servo servox;
//Servo servoy;
servox.attach(t);
//servoy.attach(s);
servox.write(0);
delay(1000);
servox.write(180);
delay(1000);
servox.attach(s);
//servoy.attach(s);
servox.write(0);
delay(1000);
servox.write(90);
delay(1000);
/*
servoy.write(0);
delay(100);
servoy.write(90);
delay(1000);
*/
}
void loop(){}