Browse Source

Define GPIO14 in Sonoff Basic and buttons in Dual R2 header as switches

fastled
Xose Pérez 7 years ago
parent
commit
7b46af8b51
1 changed files with 8 additions and 2 deletions
  1. +8
    -2
      code/espurna/config/hardware.h

+ 8
- 2
code/espurna/config/hardware.h View File

@ -164,6 +164,9 @@
#define BUTTON1_PIN 0
#define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
#define BUTTON1_RELAY 1
#define BUTTON2_PIN 14
#define BUTTON2_MODE BUTTON_SWITCH | BUTTON_SET_PULLUP
#define BUTTON2_RELAY 1
// Relays
#define RELAY1_PIN 12
@ -183,6 +186,9 @@
#define BUTTON1_PIN 0
#define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
#define BUTTON1_RELAY 1
#define BUTTON2_PIN 14
#define BUTTON2_MODE BUTTON_SWITCH | BUTTON_SET_PULLUP
#define BUTTON2_RELAY 1
// Relays
#define RELAY1_PIN 12
@ -342,8 +348,8 @@
#define BUTTON1_RELAY 1
#define BUTTON2_RELAY 2
#define BUTTON3_RELAY 1
#define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
#define BUTTON2_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
#define BUTTON1_MODE BUTTON_SWITCH | BUTTON_SET_PULLUP
#define BUTTON2_MODE BUTTON_SWITCH | BUTTON_SET_PULLUP
#define BUTTON3_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
// Relays


Loading…
Cancel
Save