#define BLYNK_TEMPLATE_ID "TMPL6PDr8xG5u"
#define BLYNK_TEMPLATE_NAME "Blynk IoT Servo"
#define BLYNK_AUTH_TOKEN "QRG16DleXP-7LmntAMMPby7NO9RVxLrR"
#include <WiFi.h>
#include <BlynkSimpleEsp32.h>
#include <ESP32Servo.h>
Servo myservo;
#define ssid "Wokwi-GUEST"
#define pass ""
int Degree = 0;
String Text = "";
//----------------------------------- Blynk Control
BLYNK_WRITE(V0){
Degree = param.asInt();
myservo.write(Degree);
Blynk.virtualWrite(V1, "Current Degree is: " + String(Degree) );
}
//----------------------------------- setup
void setup() {
Blynk.begin(BLYNK_AUTH_TOKEN, ssid, pass);
myservo.attach(13);
}
//----------------------------------- loop
void loop() {
Blynk.run();
delay(10);
}