|
|
@ -8,6 +8,7 @@ |
|
|
|
#define DEVICE "LOLIN" |
|
|
|
#define BUTTON1_PIN 0 |
|
|
|
#define BUTTON1_RELAY 1 |
|
|
|
#define BUTTON1_MODE BUTTON_SWITCH | BUTTON_DEFAULT_HIGH |
|
|
|
#define RELAY1_PIN 12 |
|
|
|
#define RELAY1_PIN_INVERSE 0 |
|
|
|
#define LED1_PIN 2 |
|
|
@ -32,6 +33,7 @@ |
|
|
|
#define DEVICE "SONOFF" |
|
|
|
#define BUTTON1_PIN 0 |
|
|
|
#define BUTTON1_RELAY 1 |
|
|
|
#define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH |
|
|
|
#define RELAY1_PIN 12 |
|
|
|
#define RELAY1_PIN_INVERSE 0 |
|
|
|
#define LED1_PIN 13 |
|
|
@ -43,6 +45,7 @@ |
|
|
|
#define DEVICE "SONOFF_TH" |
|
|
|
#define BUTTON1_PIN 0 |
|
|
|
#define BUTTON1_RELAY 1 |
|
|
|
#define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH |
|
|
|
#define RELAY1_PIN 12 |
|
|
|
#define RELAY1_PIN_INVERSE 0 |
|
|
|
#define LED1_PIN 13 |
|
|
@ -54,6 +57,7 @@ |
|
|
|
#define DEVICE "SONOFF_SV" |
|
|
|
#define BUTTON1_PIN 0 |
|
|
|
#define BUTTON1_RELAY 1 |
|
|
|
#define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH |
|
|
|
#define RELAY1_PIN 12 |
|
|
|
#define RELAY1_PIN_INVERSE 0 |
|
|
|
#define LED1_PIN 13 |
|
|
@ -65,6 +69,7 @@ |
|
|
|
#define DEVICE "SLAMPHER" |
|
|
|
#define BUTTON1_PIN 0 |
|
|
|
#define BUTTON1_RELAY 1 |
|
|
|
#define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH |
|
|
|
#define RELAY1_PIN 12 |
|
|
|
#define RELAY1_PIN_INVERSE 0 |
|
|
|
#define LED1_PIN 13 |
|
|
@ -76,6 +81,7 @@ |
|
|
|
#define DEVICE "S20" |
|
|
|
#define BUTTON1_PIN 0 |
|
|
|
#define BUTTON1_RELAY 1 |
|
|
|
#define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH |
|
|
|
#define RELAY1_PIN 12 |
|
|
|
#define RELAY1_PIN_INVERSE 0 |
|
|
|
#define LED1_PIN 13 |
|
|
@ -87,6 +93,7 @@ |
|
|
|
#define DEVICE "SONOFF_TOUCH" |
|
|
|
#define BUTTON1_PIN 0 |
|
|
|
#define BUTTON1_RELAY 1 |
|
|
|
#define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH |
|
|
|
#define RELAY1_PIN 12 |
|
|
|
#define RELAY1_PIN_INVERSE 0 |
|
|
|
#define LED1_PIN 13 |
|
|
@ -98,6 +105,7 @@ |
|
|
|
#define DEVICE "SONOFF_POW" |
|
|
|
#define BUTTON1_PIN 0 |
|
|
|
#define BUTTON1_RELAY 1 |
|
|
|
#define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH |
|
|
|
#define RELAY1_PIN 12 |
|
|
|
#define RELAY1_PIN_INVERSE 0 |
|
|
|
#define LED1_PIN 15 |
|
|
@ -120,12 +128,16 @@ |
|
|
|
#define DEVICE "SONOFF_4CH" |
|
|
|
#define BUTTON1_PIN 0 |
|
|
|
#define BUTTON1_RELAY 1 |
|
|
|
#define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH |
|
|
|
#define BUTTON2_PIN 9 |
|
|
|
#define BUTTON2_RELAY 2 |
|
|
|
#define BUTTON2_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH |
|
|
|
#define BUTTON3_PIN 10 |
|
|
|
#define BUTTON3_RELAY 3 |
|
|
|
#define BUTTON3_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH |
|
|
|
#define BUTTON4_PIN 14 |
|
|
|
#define BUTTON4_RELAY 4 |
|
|
|
#define BUTTON4_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH |
|
|
|
#define RELAY1_PIN 12 |
|
|
|
#define RELAY1_PIN_INVERSE 0 |
|
|
|
#define RELAY2_PIN 5 |
|
|
@ -147,8 +159,10 @@ |
|
|
|
#define DEVICE "1CH_INCHING" |
|
|
|
#define BUTTON1_PIN 0 |
|
|
|
#define BUTTON1_RELAY 1 |
|
|
|
#define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH |
|
|
|
#define BUTTON2_PIN 15 |
|
|
|
#define BUTTON2_RELAY 0 |
|
|
|
#define BUTTON2_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH |
|
|
|
#define RELAY1_PIN 12 |
|
|
|
#define RELAY1_PIN_INVERSE 0 |
|
|
|
#define LED1_PIN 13 |
|
|
@ -165,8 +179,10 @@ |
|
|
|
#define DEVICE "ESP_RELAY_BOARD" |
|
|
|
#define BUTTON1_PIN 0 |
|
|
|
#define BUTTON1_RELAY 1 |
|
|
|
#define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH |
|
|
|
#define BUTTON2_PIN 2 |
|
|
|
#define BUTTON2_RELAY 2 |
|
|
|
#define BUTTON2_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH |
|
|
|
#define RELAY1_PIN 12 |
|
|
|
#define RELAY1_PIN_INVERSE 0 |
|
|
|
#define RELAY2_PIN 13 |
|
|
@ -184,6 +200,7 @@ |
|
|
|
#define DEVICE "ECOPLUG" |
|
|
|
#define BUTTON1_PIN 13 |
|
|
|
#define BUTTON1_RELAY 1 |
|
|
|
#define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH |
|
|
|
#define RELAY1_PIN 15 |
|
|
|
#define RELAY1_PIN_INVERSE 0 |
|
|
|
#define LED1_PIN 2 |
|
|
@ -199,8 +216,10 @@ |
|
|
|
#define DEVICE "WIFI_RELAY_NC" |
|
|
|
#define BUTTON1_PIN 12 |
|
|
|
#define BUTTON1_RELAY 1 |
|
|
|
#define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH |
|
|
|
#define BUTTON2_PIN 13 |
|
|
|
#define BUTTON2_RELAY 2 |
|
|
|
#define BUTTON2_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH |
|
|
|
#define RELAY1_PIN 2 |
|
|
|
#define RELAY1_PIN_INVERSE 1 |
|
|
|
#define RELAY2_PIN 14 |
|
|
@ -212,8 +231,10 @@ |
|
|
|
#define DEVICE "WIFI_RELAY_NO" |
|
|
|
#define BUTTON1_PIN 12 |
|
|
|
#define BUTTON1_RELAY 1 |
|
|
|
#define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH |
|
|
|
#define BUTTON2_PIN 13 |
|
|
|
#define BUTTON2_RELAY 2 |
|
|
|
#define BUTTON2_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH |
|
|
|
#define RELAY1_PIN 2 |
|
|
|
#define RELAY1_PIN_INVERSE 0 |
|
|
|
#define RELAY2_PIN 14 |
|
|
@ -229,6 +250,7 @@ |
|
|
|
#define DEVICE "ESPURNA" |
|
|
|
#define BUTTON1_PIN 0 |
|
|
|
#define BUTTON1_RELAY 1 |
|
|
|
#define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH |
|
|
|
#define RELAY1_PIN 12 |
|
|
|
#define RELAY1_PIN_INVERSE 0 |
|
|
|
#define LED1_PIN 13 |
|
|
|