#include <ESP32Servo.h>
Servo SERVO;
void setup() {
// put your setup code here, to run once:
SERVO.attach(23);
}
void loop() {
// put your main code here, to run repeatedly:
SERVO.write(0);
delay(1000);
SERVO.write(90);
delay(1000);
SERVO.write(180);
delay(1000);
}