Hi all,
it’s the first time i will use blink, and have some doubts.
I create on the app a panel with 3 buttons (push buttons).
My physical device have 3 push buttons which are read by
#include <Button.h>
int newDebounceDelay = 60;
....
Button automatic(10, LOW);
char operation_mode;
.......
operation_mode = EEPROM.read(0);
msgnum = EEPROM.read(1);
if ((operation_mode != 'A') && (operation_mode != 'C') && (operation_mode != 'O') && (operation_mode != 'P')) {
operation_mode = 'A';
digitalWrite(LedAuto, HIGH);
}
void loop() {
check_button();
}
void check_button() {
automatic.listen();
if (automatic.onPress()) {
if (operation_mode == 'A') {
operation_mode = 'P';
digitalWrite(LedAuto, LOW);
digitalWrite(LedOpen, LOW);
digitalWrite(LedClose, LOW);
msgnum = 3;
} else {
operation_mode = 'A';
digitalWrite(LedAuto, HIGH);
digitalWrite(LedOpen, LOW);
digitalWrite(LedClose, LOW);
msgnum = 0;
}
}
how could i read the blynk push button, like:
if (automatic.onPress() || virtualRead(10)) {
do whatever;
}
and have it true || high?
Is this correct?
Sorry if it’s basic… it’s my first atempt…
TIA