Browse Source
update GREEN_ESP8266RELAY button1 mode
Mine was not working till I added BUTTON_SET_PULLUP | BUTTON_DEFAULT_HIGH
rules-rpn
irmishappy
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
code/espurna/config/hardware.h
|
|
@ -2239,7 +2239,7 @@ |
|
|
|
// Buttons |
|
|
|
// Not a button but input via Optocoupler |
|
|
|
#define BUTTON1_PIN 5 |
|
|
|
#define BUTTON1_MODE BUTTON_PUSHBUTTON |
|
|
|
#define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_SET_PULLUP | BUTTON_DEFAULT_HIGH |
|
|
|
#define BUTTON1_RELAY 1 |
|
|
|
|
|
|
|
// Relays |
|
|
|