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
parent
commit
72da00126a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      code/espurna/config/hardware.h

+ 1
- 1
code/espurna/config/hardware.h View File

@ -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


Loading…
Cancel
Save