|
@ -2198,7 +2198,7 @@ |
|
|
#define BUTTON1_PIN 12 |
|
|
#define BUTTON1_PIN 12 |
|
|
#define BUTTON1_RELAY 1 |
|
|
#define BUTTON1_RELAY 1 |
|
|
#define BUTTON1_MODE BUTTON_SWITCH | BUTTON_DEFAULT_HIGH //Hardware Pullup |
|
|
#define BUTTON1_MODE BUTTON_SWITCH | BUTTON_DEFAULT_HIGH //Hardware Pullup |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define BUTTON1_PRESS BUTTON_MODE_NONE |
|
|
#define BUTTON1_PRESS BUTTON_MODE_NONE |
|
|
#define BUTTON1_CLICK BUTTON_MODE_TOGGLE |
|
|
#define BUTTON1_CLICK BUTTON_MODE_TOGGLE |
|
|
#define BUTTON1_DBLCLICK BUTTON_MODE_NONE |
|
|
#define BUTTON1_DBLCLICK BUTTON_MODE_NONE |
|
@ -2431,7 +2431,7 @@ |
|
|
//Red LED: 0 |
|
|
//Red LED: 0 |
|
|
//Green LED: 12 |
|
|
//Green LED: 12 |
|
|
//Blue LED: 2 |
|
|
//Blue LED: 2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Blue |
|
|
// Blue |
|
|
#define LED1_PIN 2 |
|
|
#define LED1_PIN 2 |
|
|
#define LED1_PIN_INVERSE 0 |
|
|
#define LED1_PIN_INVERSE 0 |
|
@ -2440,7 +2440,7 @@ |
|
|
#define LED2_PIN 12 |
|
|
#define LED2_PIN 12 |
|
|
#define LED2_PIN_INVERSE 1 |
|
|
#define LED2_PIN_INVERSE 1 |
|
|
#define LED2_MODE LED_MODE_RELAY |
|
|
#define LED2_MODE LED_MODE_RELAY |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Red |
|
|
// Red |
|
|
#define LED3_PIN 0 |
|
|
#define LED3_PIN 0 |
|
|
#define LED3_PIN_INVERSE 0 |
|
|
#define LED3_PIN_INVERSE 0 |
|
@ -2459,8 +2459,8 @@ |
|
|
#define HLW8012_VOLTAGE_RATIO 313400 |
|
|
#define HLW8012_VOLTAGE_RATIO 313400 |
|
|
#define HLW8012_POWER_RATIO 3414290 |
|
|
#define HLW8012_POWER_RATIO 3414290 |
|
|
#define HLW8012_INTERRUPT_ON FALLING |
|
|
#define HLW8012_INTERRUPT_ON FALLING |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------- |
|
|
// ----------------------------------------------------------------------------- |
|
|
// VANZAVANZU Smart Outlet Socket (based on BL0937 or HJL-01) |
|
|
// VANZAVANZU Smart Outlet Socket (based on BL0937 or HJL-01) |
|
|
// https://www.amazon.com/Smart-Plug-Wifi-Mini-VANZAVANZU/dp/B078PHD6S5 |
|
|
// https://www.amazon.com/Smart-Plug-Wifi-Mini-VANZAVANZU/dp/B078PHD6S5 |
|
|