#include <ESP32Servo.h>
Servo servo;
void setup() {
servo.attach(32);
}
void loop() {
servo.write(0);
delay(500);
servo.write(90);
delay(500);
servo.write(180);
delay(500);
servo.write(90);
delay(500);
}
Loading
ssd1306
ssd1306
#include <ESP32Servo.h>
Servo servo;
void setup() {
servo.attach(32);
}
void loop() {
servo.write(0);
delay(500);
servo.write(90);
delay(500);
servo.write(180);
delay(500);
servo.write(90);
delay(500);
}