#include <ESP32Servo.h>
Servo motor1;
Servo motor2;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, ESP32!");
motor1.attach(15);
motor2.attach(16);
}
void loop() {
motor1.write(0);
motor2.write(360);
delay(1000);
motor1.write(90);
motor2.write(90);
delay(1000);
// }
// let i=1;
// for(i;i<=2;i++){
// motor1.write(0);
// delay(1000);
// motor1.write(90);
// delay(1000);
// motor1.write(-90);
// delay(1000);
// }
}