diff --git a/code/espurna/config/arduino.h b/code/espurna/config/arduino.h index 3fdd0451..3ce01236 100644 --- a/code/espurna/config/arduino.h +++ b/code/espurna/config/arduino.h @@ -40,6 +40,7 @@ //#define JORGEGARCIA_WIFI_RELAYS //#define OPENENERGYMONITOR_MQTT_RELAY //#define HUACANXING_H802 +//#define QUINLED //-------------------------------------------------------------------------------- // Features (values below are non-default values) diff --git a/code/espurna/config/hardware.h b/code/espurna/config/hardware.h index e9034066..947b4e31 100644 --- a/code/espurna/config/hardware.h +++ b/code/espurna/config/hardware.h @@ -957,6 +957,30 @@ #define DS18B20_UPDATE_INTERVAL 5000 #define DS18B20_UPDATE_ON_CHANGE 1.0 +// QuinLED +// - http://blog.quindorian.org/2017/02/esp8266-led-lighting-quinled-v2-6-pcb.html/ +// ----------------------------------------------------------------------------- + +#elif defined(QUINLED) + + // Info + #define MANUFACTURER "INTERMIT.TECH" + #define DEVICE "QUINLED" + #define RELAY_PROVIDER RELAY_PROVIDER_LIGHT + #define LIGHT_PROVIDER LIGHT_PROVIDER_DIMMER + #define DUMMY_RELAY_COUNT 1 + + // LEDs + #define LED1_PIN 5 + #define LED1_PIN_INVERSE 1 + + // Channels + #define LIGHT_CH1_PIN 0 + #define LIGHT_CH2_PIN 2 + + #define LIGHT_CH1_INVERSE 0 + #define LIGHT_CH2_INVERSE 0 + // ----------------------------------------------------------------------------- // Unknown hardware // ----------------------------------------------------------------------------- diff --git a/code/espurna/hardware.ino b/code/espurna/hardware.ino index 1fa405d4..a789f4f8 100644 --- a/code/espurna/hardware.ino +++ b/code/espurna/hardware.ino @@ -467,6 +467,19 @@ void hwUpwardsCompatibility() { setSetting("relayType", 1, RELAY_TYPE_NORMAL); setSetting("relayType", 2, RELAY_TYPE_NORMAL); + #elif defined(QUINLED) + + setSetting("board", 41); + setSetting("relayProvider", RELAY_PROVIDER_LIGHT); + setSetting("lightProvider", LIGHT_PROVIDER_DIMMER); + setSetting("ledGPIO", 1, 1); + setSetting("ledLogic", 1, 1); + setSetting("chGPIO", 1, 0); + setSetting("chGPIO", 2, 2); + setSetting("chLogic", 1, 0); + setSetting("chLogic", 2, 0); + setSetting("relays", 1); + #else #error "UNSUPPORTED HARDWARE!"