Hello I created a sketch on arduino with a button “turn it all off” then pressing the d7 button go off d2-d3 etc …, now the problem is that if I turn off the buttons that are turned on via the “Shutdown all”
"they really turn off but they always stay ON in the app blynk, the buttons are all synchronized the state of widgets with hardware states,
even if hardware resets or looses connection temporarily lost the connection, in another test I created the virtual pin and it works perfectly only that I can not synchronize the graphic buttons that remain ON and not change status if pressed by the button, “turn all off”
is possible implement this feature ?
Thank you.
//#define BLYNK_PRINT DebugSerial
#define BLYNK_PRINT SwSerial //LED
#include <SoftwareSerial.h>
SoftwareSerial DebugSerial(0, 1); // RX, TX
SoftwareSerial SwSerial(10, 11); // RX, TX
#include <BlynkSimpleStream.h>
int pin2 = 2;
int pin3 = 3;
int pulsante = 7;
int stato_pulsante;
void setup() {
pinMode(pin2, OUTPUT);
pinMode(pin3, OUTPUT);
pinMode(pulsante, INPUT);
DebugSerial.begin(9600);
Serial.begin(9600);
Blynk.begin(Serial, auth);
SwSerial.begin(9600);
}
void loop() {
stato_pulsante = digitalRead(pulsante);
if (stato_pulsante == HIGH) {
digitalWrite(pin2, HIGH);
digitalWrite(pin3, HIGH);
Blynk.run();
}