Browse Source

Initial support for QuinLED 2.6 Rev1.00

fastled
Colin Shorts 7 years ago
parent
commit
df9fa1d424
3 changed files with 38 additions and 0 deletions
  1. +1
    -0
      code/espurna/config/arduino.h
  2. +24
    -0
      code/espurna/config/hardware.h
  3. +13
    -0
      code/espurna/hardware.ino

+ 1
- 0
code/espurna/config/arduino.h View File

@ -40,6 +40,7 @@
//#define JORGEGARCIA_WIFI_RELAYS
//#define OPENENERGYMONITOR_MQTT_RELAY
//#define HUACANXING_H802
//#define QUINLED
//--------------------------------------------------------------------------------
// Features (values below are non-default values)


+ 24
- 0
code/espurna/config/hardware.h View File

@ -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
// -----------------------------------------------------------------------------


+ 13
- 0
code/espurna/hardware.ino View File

@ -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!"


Loading…
Cancel
Save