Browse Source

hardware: add support for LSC E27 10W white bulb (#2375)

* Add support for LSC E27 10W white bulb

* Add OTA config for LSC E27 10W white bulb
Add LSC E27 10W white bulb to arduino.h
mcspr-patch-1
tom-kaltofen 4 years ago
committed by GitHub
parent
commit
801e22a034
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 29 additions and 0 deletions
  1. +1
    -0
      code/espurna/config/arduino.h
  2. +21
    -0
      code/espurna/config/hardware.h
  3. +4
    -0
      code/platformio.ini
  4. +3
    -0
      code/platformio_ota.ini

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

@ -181,6 +181,7 @@
//#define ZHILDE_44EU_W //#define ZHILDE_44EU_W
//#define ZHILDE_64EU_W //#define ZHILDE_64EU_W
//#define FCMILA_E27_7W_RGBW //#define FCMILA_E27_7W_RGBW
//#define LSC_E27_10W_WHITE
//-------------------------------------------------------------------------------- //--------------------------------------------------------------------------------
// Features (values below are non-default values) // Features (values below are non-default values)


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

@ -4971,6 +4971,27 @@
#define LIGHT_CH3_PIN 14 // BLUE #define LIGHT_CH3_PIN 14 // BLUE
#define LIGHT_CH4_PIN 5 // WHITE #define LIGHT_CH4_PIN 5 // WHITE
// -----------------------------------------------------------------------------
// LSC E27 10W White Bulb with TYLC6E ESP8266 module
// https://www.action.com/de-at/p/lsc-smart-connect-intelligente-led-lampe/
// -----------------------------------------------------------------------------
#elif defined(LSC_E27_10W_WHITE)
// Info
#define MANUFACTURER "LSC"
#define DEVICE "E27_10W_WHITE"
#define RELAY_PROVIDER RELAY_PROVIDER_LIGHT
#define LIGHT_PROVIDER LIGHT_PROVIDER_DIMMER
#define DUMMY_RELAY_COUNT 1
// Light
#define LIGHT_CHANNELS 2
#define LIGHT_CH1_PIN 5 // WARM WHITE LED PWM PIN
#define LIGHT_CH1_INVERSE 0
#define LIGHT_CH2_PIN 4 // COLD WHITE LED PWM PIN
#define LIGHT_CH2_INVERSE 0
#else #else
#error "UNSUPPORTED HARDWARE!!" #error "UNSUPPORTED HARDWARE!!"


+ 4
- 0
code/platformio.ini View File

@ -1056,3 +1056,7 @@ src_build_flags = -DPRODINO_WIFI -DNOWSAUTH
[env:fcmila-e27-7w-rgbw] [env:fcmila-e27-7w-rgbw]
extends = env:esp8266-1m-base extends = env:esp8266-1m-base
src_build_flags = -DFCMILA_E27_7W_RGBW src_build_flags = -DFCMILA_E27_7W_RGBW
[env:lsc-e27-10w-white]
extends = env:esp8266-1m-base
src_build_flags = -DLSC_E27_10W_WHITE

+ 3
- 0
code/platformio_ota.ini View File

@ -473,3 +473,6 @@ extends = env:ehomediy-wt03
[env:fcmila-e27-7w-rgbw-ota] [env:fcmila-e27-7w-rgbw-ota]
extends = env:fcmila-e27-7w-rgbw extends = env:fcmila-e27-7w-rgbw
[env:lsc-e27-10w-white-ota]
extends = env:lsc-e27-10w-white

Loading…
Cancel
Save