#define BLYNK_TEMPLATE_ID "TMPL64JjhUT-X"
#define BLYNK_TEMPLATE_NAME "Servo"
#define BLYNK_AUTH_TOKEN "bqHXAQ6ugwtDUxwQn3fjEklWDKc2khBt"
#include <BlynkSimpleEsp32.h>
#include <WiFi.h>
#include <ESP32Servo.h>
char auth[] = BLYNK_AUTH_TOKEN;
char ssid[] = "Wokwi-GUEST";
char pass[] = "";
Servo myServo;
int servoPin = 4;
BLYNK_WRITE(V0) {
int posisiServo = param.asInt();
myServo.write(posisiServo);
}
void setup() {
Blynk.begin(auth, ssid, pass);
myServo.attach(servoPin);
}
void loop() {
Blynk.run();
delay(10);
}