#include <ESP32Servo.h>
Servo myservo;
void setup() {
myservo.attach(18);
}
void loop() {
myservo.write(0);
delay(2000);
myservo.write(90);
delay(2000);
myservo.write(180);
delay(2000);
}
#include <ESP32Servo.h>
Servo myservo;
void setup() {
myservo.attach(18);
}
void loop() {
myservo.write(0);
delay(2000);
myservo.write(90);
delay(2000);
myservo.write(180);
delay(2000);
}