Browse Source

hw: restore sonoff-mini switch actions defaults

mcspr-patch-1
Maxim Prokhorov 4 years ago
parent
commit
99cb8e0094
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      code/espurna/config/hardware.h

+ 3
- 0
code/espurna/config/hardware.h View File

@ -369,9 +369,12 @@
#define BUTTON1_PIN 0 #define BUTTON1_PIN 0
#define BUTTON1_CONFIG BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH #define BUTTON1_CONFIG BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
#define BUTTON1_RELAY 1 #define BUTTON1_RELAY 1
#define BUTTON2_PIN 4 #define BUTTON2_PIN 4
#define BUTTON2_CONFIG BUTTON_SWITCH | BUTTON_SET_PULLUP | BUTTON_DEFAULT_HIGH #define BUTTON2_CONFIG BUTTON_SWITCH | BUTTON_SET_PULLUP | BUTTON_DEFAULT_HIGH
#define BUTTON2_RELAY 1 #define BUTTON2_RELAY 1
#define BUTTON2_PRESS BUTTON_ACTION_ON
#define BUTTON2_RELEASE BUTTON_ACTION_OFF
// Relays // Relays
#define RELAY1_PIN 12 #define RELAY1_PIN 12


Loading…
Cancel
Save