Here is the code that I last tried…
/*
Blink
Turns on an LED on for one second, then off for one second, repeatedly.
This example code is in the public domain.
*/
// Pin 13 has an LED connected on most Arduino boards.
// Pin 11 has the LED on Teensy 2.0
// Pin 6 has the LED on Teensy++ 2.0
// Pin 13 has the LED on Teensy 3.0
// give it a name:
int led = 13;
int led1 = 7;
int led2 = 8;
//I had to modify the ‘‘include’’ lines below to not interact with my post
Bridge.h
YunClient.h
YunServer.h
BlynkSimpleYun.h
char auth[] = “blah blah blah”;
// the setup routine runs once when you press reset:
void setup() {
// initialize the digital pin as an output.
pinMode(led1, OUTPUT);
pinMode(led, OUTPUT);
pinMode(led2, OUTPUT);
Blynk.begin(auth);
Serial.begin(9600);
int tmft = 1;
}
// the loop routine runs over and over again forever:
void loop() {
// Do your sketch stuff here
Blynk.run();
// while(led2 == true){
if (led2 == true){
delay(1000);
Blynk.setProperty((led1, LOW), "offLabel", "false");
Blynk.setProperty((led2, LOW), "offLabel", "false");
Serial.println("stop button is engaged. Time to reset");
Blynk.syncAll();
}
//}
digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(led, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}