#define BLYNK_PRINT Serial
#define BLYNK_TEMPLATE_ID "TMPL0hyIJNKm"
#define BLYNK_DEVICE_NAME "MotorServo"
#define LED 2
#include <WiFi.h>
#include <WiFiClient.h>
#include <BlynkSimpleEsp32.h>
#include <ESP32Servo.h>
Servo myservo;
char auth[] = "t0bViGsdeo5tCMRgynBzYDklSCdZDiAd";
char ssid[] = "Wokwi-GUEST";
char pass[] = "";
void setup()
{
Serial.begin(9600);
Blynk.begin(auth, ssid, pass);
myservo.attach(15);
}
BLYNK_WRITE(V0) {
myservo.write(param.asInt());
}
void loop()
{
Blynk.run();
}