|
@ -3533,6 +3533,50 @@ |
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------- |
|
|
// ----------------------------------------------------------------------------- |
|
|
|
|
|
|
|
|
|
|
|
#elif defined(GENERIC_AG_L4_V3) |
|
|
|
|
|
|
|
|
|
|
|
// Info |
|
|
|
|
|
#define MANUFACTURER "GENERIC" |
|
|
|
|
|
#define DEVICE "AG_L4_V3" |
|
|
|
|
|
#define RELAY_PROVIDER RELAY_PROVIDER_LIGHT |
|
|
|
|
|
#define LIGHT_PROVIDER LIGHT_PROVIDER_DIMMER |
|
|
|
|
|
#define DUMMY_RELAY_COUNT 1 |
|
|
|
|
|
|
|
|
|
|
|
// button 1: "power" button |
|
|
|
|
|
#define BUTTON1_PIN 13 |
|
|
|
|
|
#define BUTTON1_RELAY 1 |
|
|
|
|
|
#define BUTTON1_CONFIG BUTTON_PUSHBUTTON | BUTTON_SET_PULLUP | BUTTON_DEFAULT_HIGH |
|
|
|
|
|
#define BUTTON1_PRESS BUTTON_ACTION_TOGGLE |
|
|
|
|
|
#define BUTTON1_CLICK BUTTON_ACTION_NONE |
|
|
|
|
|
#define BUTTON1_DBLCLICK BUTTON_ACTION_NONE |
|
|
|
|
|
#define BUTTON1_LNGCLICK BUTTON_ACTION_NONE |
|
|
|
|
|
#define BUTTON1_LNGLNGCLICK BUTTON_ACTION_RESET |
|
|
|
|
|
|
|
|
|
|
|
// button 2: "wifi" button |
|
|
|
|
|
#define BUTTON2_PIN 2 |
|
|
|
|
|
#define BUTTON2_CONFIG BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH |
|
|
|
|
|
#define BUTTON2_PRESS BUTTON_ACTION_TOGGLE |
|
|
|
|
|
#define BUTTON2_CLICK BUTTON_ACTION_NONE |
|
|
|
|
|
#define BUTTON2_DBLCLICK BUTTON_ACTION_NONE |
|
|
|
|
|
#define BUTTON2_LNGCLICK BUTTON_ACTION_NONE |
|
|
|
|
|
#define BUTTON2_LNGLNGCLICK BUTTON_ACTION_NONE |
|
|
|
|
|
|
|
|
|
|
|
// LEDs |
|
|
|
|
|
#define LED1_PIN 5 // red status led |
|
|
|
|
|
#define LED1_PIN_INVERSE 0 |
|
|
|
|
|
|
|
|
|
|
|
#define LED2_PIN 16 // master light power |
|
|
|
|
|
#define LED2_PIN_INVERSE 1 |
|
|
|
|
|
#define LED2_MODE LED_MODE_RELAY |
|
|
|
|
|
|
|
|
|
|
|
// Light |
|
|
|
|
|
#define LIGHT_CHANNELS 3 |
|
|
|
|
|
#define LIGHT_CH1_PIN 4 // RED |
|
|
|
|
|
#define LIGHT_CH2_PIN 12 // GREEN |
|
|
|
|
|
#define LIGHT_CH3_PIN 14 // BLUE |
|
|
|
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------- |
|
|
|
|
|
|
|
|
#elif defined(ALLTERCO_SHELLY1) |
|
|
#elif defined(ALLTERCO_SHELLY1) |
|
|
|
|
|
|
|
|
// Info |
|
|
// Info |
|
|