diff --git a/code/espurna/config/hardware.h b/code/espurna/config/hardware.h index 2c6e5f00..08c74667 100644 --- a/code/espurna/config/hardware.h +++ b/code/espurna/config/hardware.h @@ -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