Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <BlynkSimpleStream.h>
- // You should get Auth Token in the Blynk App.
- // Go to the Project Settings (nut icon).
- char auth[] = "3NyiiB8i6r6EWvRfuS43nSb8NGexA9KH";
- void setup()
- {
- Serial.begin(9600);
- Blynk.begin(auth, Serial);
- pinMode(11, OUTPUT);
- pinMode(12, OUTPUT);
- pinMode(13, OUTPUT);
- }
- BLYNK_WRITE(V1) //Button Widget is writing to pin V1
- {
- int pinData = param.asInt();
- if(pinData==1){
- digitalWrite(11, HIGH);
- }else{
- digitalWrite(11, LOW);
- }
- }
- void loop()
- {
- Blynk.run();
- }
Add Comment
Please, Sign In to add comment