#include <ESP32Servo.h>
Servo myservo;
int servoPin = 19;
void setup()
{
myservo.attach(servoPin);
}
void loop()
{
myservo.write(90);
delay(1000);
myservo.write(180);
delay(1000);
myservo.write(0);
delay(1000);
}
#include <ESP32Servo.h>
Servo myservo;
int servoPin = 19;
void setup()
{
myservo.attach(servoPin);
}
void loop()
{
myservo.write(90);
delay(1000);
myservo.write(180);
delay(1000);
myservo.write(0);
delay(1000);
}