Hardware components | ||||||
![]() |
| × | 1 | |||
| × | 1 | ||||
Software apps and online services | ||||||
![]() |
| |||||
![]() |
| |||||
Hand tools and fabrication machines | ||||||
![]() |
|
not yet
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include <Servo.h>
#define BLYNK_PRINT Serial
Servo servo;
char auth[] = "xxxxxxxxxxxxxxxx";
char ssid[] = "xxxxxx";
char pswd[] = "xxxxxxxxxxxx";
void setup() {
Serial.begin(9600);
Blynk.begin(auth,ssid,pswd);
servo.attach(5);
}
void loop(){
Blynk.run();
}
BLYNK_WRITE(V1) {
servo.write(param.asInt() ) ;
}
Comments