|
@ -26,8 +26,8 @@ |
|
|
#define DEVICE "LOLIN" |
|
|
#define DEVICE "LOLIN" |
|
|
#define BUTTON1_PIN 0 |
|
|
#define BUTTON1_PIN 0 |
|
|
#define RELAY1_PIN 12 |
|
|
#define RELAY1_PIN 12 |
|
|
#define LED_PIN 2 |
|
|
|
|
|
#define LED_PIN_INVERSE 0 |
|
|
|
|
|
|
|
|
#define LED1_PIN 2 |
|
|
|
|
|
#define LED1_PIN_INVERSE 0 |
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------- |
|
|
// ----------------------------------------------------------------------------- |
|
|
// Itead Studio boards |
|
|
// Itead Studio boards |
|
@ -39,8 +39,8 @@ |
|
|
#define DEVICE "SONOFF" |
|
|
#define DEVICE "SONOFF" |
|
|
#define BUTTON1_PIN 0 |
|
|
#define BUTTON1_PIN 0 |
|
|
#define RELAY1_PIN 12 |
|
|
#define RELAY1_PIN 12 |
|
|
#define LED_PIN 13 |
|
|
|
|
|
#define LED_PIN_INVERSE 0 |
|
|
|
|
|
|
|
|
#define LED1_PIN 13 |
|
|
|
|
|
#define LED1_PIN_INVERSE 0 |
|
|
|
|
|
|
|
|
#elif defined(SONOFF_TH) |
|
|
#elif defined(SONOFF_TH) |
|
|
|
|
|
|
|
@ -48,8 +48,8 @@ |
|
|
#define DEVICE "SONOFF_TH" |
|
|
#define DEVICE "SONOFF_TH" |
|
|
#define BUTTON1_PIN 0 |
|
|
#define BUTTON1_PIN 0 |
|
|
#define RELAY1_PIN 12 |
|
|
#define RELAY1_PIN 12 |
|
|
#define LED_PIN 13 |
|
|
|
|
|
#define LED_PIN_INVERSE 0 |
|
|
|
|
|
|
|
|
#define LED1_PIN 13 |
|
|
|
|
|
#define LED1_PIN_INVERSE 0 |
|
|
|
|
|
|
|
|
#elif defined(SONOFF_TOUCH) |
|
|
#elif defined(SONOFF_TOUCH) |
|
|
|
|
|
|
|
@ -57,8 +57,8 @@ |
|
|
#define DEVICE "SONOFF_TOUCH" |
|
|
#define DEVICE "SONOFF_TOUCH" |
|
|
#define BUTTON1_PIN 0 |
|
|
#define BUTTON1_PIN 0 |
|
|
#define RELAY1_PIN 12 |
|
|
#define RELAY1_PIN 12 |
|
|
#define LED_PIN 13 |
|
|
|
|
|
#define LED_PIN_INVERSE 1 |
|
|
|
|
|
|
|
|
#define LED1_PIN 13 |
|
|
|
|
|
#define LED1_PIN_INVERSE 1 |
|
|
|
|
|
|
|
|
#elif defined(SONOFF_POW) |
|
|
#elif defined(SONOFF_POW) |
|
|
|
|
|
|
|
@ -66,8 +66,8 @@ |
|
|
#define DEVICE "SONOFF_POW" |
|
|
#define DEVICE "SONOFF_POW" |
|
|
#define BUTTON1_PIN 0 |
|
|
#define BUTTON1_PIN 0 |
|
|
#define RELAY1_PIN 12 |
|
|
#define RELAY1_PIN 12 |
|
|
#define LED_PIN 15 |
|
|
|
|
|
#define LED_PIN_INVERSE 1 |
|
|
|
|
|
|
|
|
#define LED1_PIN 15 |
|
|
|
|
|
#define LED1_PIN_INVERSE 1 |
|
|
#define ENABLE_POW 1 |
|
|
#define ENABLE_POW 1 |
|
|
|
|
|
|
|
|
#elif defined(SONOFF_DUAL) |
|
|
#elif defined(SONOFF_DUAL) |
|
@ -75,8 +75,8 @@ |
|
|
#define MANUFACTURER "ITEAD" |
|
|
#define MANUFACTURER "ITEAD" |
|
|
#define DEVICE "SONOFF_DUAL" |
|
|
#define DEVICE "SONOFF_DUAL" |
|
|
#define BUTTON1_PIN 0 |
|
|
#define BUTTON1_PIN 0 |
|
|
#define LED_PIN 13 |
|
|
|
|
|
#define LED_PIN_INVERSE 0 |
|
|
|
|
|
|
|
|
#define LED1_PIN 13 |
|
|
|
|
|
#define LED1_PIN_INVERSE 0 |
|
|
#undef SERIAL_BAUDRATE |
|
|
#undef SERIAL_BAUDRATE |
|
|
#define SERIAL_BAUDRATE 19230 |
|
|
#define SERIAL_BAUDRATE 19230 |
|
|
|
|
|
|
|
@ -92,8 +92,8 @@ |
|
|
#define RELAY2_PIN 5 |
|
|
#define RELAY2_PIN 5 |
|
|
#define RELAY3_PIN 4 |
|
|
#define RELAY3_PIN 4 |
|
|
#define RELAY4_PIN 15 |
|
|
#define RELAY4_PIN 15 |
|
|
#define LED_PIN 13 |
|
|
|
|
|
#define LED_PIN_INVERSE 1 |
|
|
|
|
|
|
|
|
#define LED1_PIN 13 |
|
|
|
|
|
#define LED1_PIN_INVERSE 1 |
|
|
|
|
|
|
|
|
#elif defined(SONOFF_SV) |
|
|
#elif defined(SONOFF_SV) |
|
|
|
|
|
|
|
@ -101,8 +101,8 @@ |
|
|
#define DEVICE "SONOFF_SV" |
|
|
#define DEVICE "SONOFF_SV" |
|
|
#define BUTTON1_PIN 0 |
|
|
#define BUTTON1_PIN 0 |
|
|
#define RELAY1_PIN 12 |
|
|
#define RELAY1_PIN 12 |
|
|
#define LED_PIN 13 |
|
|
|
|
|
#define LED_PIN_INVERSE 1 |
|
|
|
|
|
|
|
|
#define LED1_PIN 13 |
|
|
|
|
|
#define LED1_PIN_INVERSE 1 |
|
|
|
|
|
|
|
|
#elif defined(SLAMPHER) |
|
|
#elif defined(SLAMPHER) |
|
|
|
|
|
|
|
@ -110,8 +110,8 @@ |
|
|
#define DEVICE "SLAMPHER" |
|
|
#define DEVICE "SLAMPHER" |
|
|
#define BUTTON1_PIN 0 |
|
|
#define BUTTON1_PIN 0 |
|
|
#define RELAY1_PIN 12 |
|
|
#define RELAY1_PIN 12 |
|
|
#define LED_PIN 13 |
|
|
|
|
|
#define LED_PIN_INVERSE 0 |
|
|
|
|
|
|
|
|
#define LED1_PIN 13 |
|
|
|
|
|
#define LED1_PIN_INVERSE 0 |
|
|
|
|
|
|
|
|
#elif defined(S20) |
|
|
#elif defined(S20) |
|
|
|
|
|
|
|
@ -119,8 +119,8 @@ |
|
|
#define DEVICE "S20" |
|
|
#define DEVICE "S20" |
|
|
#define BUTTON1_PIN 0 |
|
|
#define BUTTON1_PIN 0 |
|
|
#define RELAY1_PIN 12 |
|
|
#define RELAY1_PIN 12 |
|
|
#define LED_PIN 13 |
|
|
|
|
|
#define LED_PIN_INVERSE 0 |
|
|
|
|
|
|
|
|
#define LED1_PIN 13 |
|
|
|
|
|
#define LED1_PIN_INVERSE 0 |
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------- |
|
|
// ----------------------------------------------------------------------------- |
|
|
// Electrodragon boards |
|
|
// Electrodragon boards |
|
@ -134,8 +134,8 @@ |
|
|
#define BUTTON2_PIN 2 |
|
|
#define BUTTON2_PIN 2 |
|
|
#define RELAY1_PIN 12 |
|
|
#define RELAY1_PIN 12 |
|
|
#define RELAY2_PIN 13 |
|
|
#define RELAY2_PIN 13 |
|
|
#define LED_PIN 16 |
|
|
|
|
|
#define LED_PIN_INVERSE 1 |
|
|
|
|
|
|
|
|
#define LED1_PIN 16 |
|
|
|
|
|
#define LED1_PIN_INVERSE 1 |
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------- |
|
|
// ----------------------------------------------------------------------------- |
|
|
// WorkChoice ecoPlug |
|
|
// WorkChoice ecoPlug |
|
@ -147,8 +147,8 @@ |
|
|
#define DEVICE "ECOPLUG" |
|
|
#define DEVICE "ECOPLUG" |
|
|
#define BUTTON1_PIN 13 |
|
|
#define BUTTON1_PIN 13 |
|
|
#define RELAY_PIN 15 |
|
|
#define RELAY_PIN 15 |
|
|
#define LED_PIN 2 |
|
|
|
|
|
#define LED_PIN_INVERSE 1 |
|
|
|
|
|
|
|
|
#define LED1_PIN 2 |
|
|
|
|
|
#define LED1_PIN_INVERSE 1 |
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------- |
|
|
// ----------------------------------------------------------------------------- |
|
|
// ESPurna board (still beta) |
|
|
// ESPurna board (still beta) |
|
@ -160,8 +160,8 @@ |
|
|
#define DEVICE "ESPURNA" |
|
|
#define DEVICE "ESPURNA" |
|
|
#define BUTTON1_PIN 0 |
|
|
#define BUTTON1_PIN 0 |
|
|
#define RELAY1_PIN 12 |
|
|
#define RELAY1_PIN 12 |
|
|
#define LED_PIN 13 |
|
|
|
|
|
#define LED_PIN_INVERSE 0 |
|
|
|
|
|
|
|
|
#define LED1_PIN 13 |
|
|
|
|
|
#define LED1_PIN_INVERSE 0 |
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------- |
|
|
// ----------------------------------------------------------------------------- |
|
|
// Unknown hardware |
|
|
// Unknown hardware |
|
|