#include "ESP32Servo.h"

Servo servo;
int Grados = 0
pinMode(13, INPUT);




void setup() {
  // put your setup code here, to run once:
  Serial.begin(115200);
  Serial.println("Hello, ESP32!");

  ESP32PWM::allocateTimer(0);
  servo.attach(4);


}

void loop() {
  // put your main code here, to run repeatedly:
  servo.write(0);
  delay(5000);
  servo.write(180);
  delay(5000);
  servo.write(170);
  delay(5000); 
  servo.write(160);
  delay(5000); 
  servo.write(150);
  delay(5000); 
  servo.write(140);
  delay(5000); 
  servo.write(130);
  delay(5000);  
}