#include<ESP32Servo.h>
Servo s;
int p=0;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
s.attach(4);
}
void loop()
{
for(p=0;p<180;p++)
{
s.write(p);
delay(50);
}
// this spreds up the simulation
}#include<ESP32Servo.h>
Servo s;
int p=0;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
s.attach(4);
}
void loop()
{
for(p=0;p<180;p++)
{
s.write(p);
delay(50);
}
// this spreds up the simulation
}