This website works better with JavaScript.
Home
Explore
Help
Sign In
mh
/
mhsw-espurna
Watch
1
Star
0
Fork
0
Code
Releases
0
Activity
Browse Source
hw: restore sonoff-mini switch actions defaults
mcspr-patch-1
Maxim Prokhorov
4 years ago
parent
f497312f29
commit
99cb8e0094
1 changed files
with
3 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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_CONFIG BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
#
define BUTTON1_RELAY 1
#
define BUTTON2_PIN 4
#
define BUTTON2_CONFIG BUTTON_SWITCH | BUTTON_SET_PULLUP | BUTTON_DEFAULT_HIGH
#
define BUTTON2_RELAY 1
#
define BUTTON2_PRESS BUTTON_ACTION_ON
#
define BUTTON2_RELEASE BUTTON_ACTION_OFF
/
/
Relays
#
define RELAY1_PIN 12
Write
Preview
Loading…
Cancel
Save