const int servoPin = 18; void setup() { // Setup PWM channel ledcAttachChannel(servoPin, 50, 8, 0); } void loop() { // LEFT ledcWrite(servoPin, 6); delay(1000); // CENTER ledcWrite(servoPin, 19); delay(1000); // RIGHT ledcWrite(servoPin, 32); delay(1000); }