Browse Source

hw: add support for Fcmila E27 7W RGB+W light bulb (#2353)

Device in question: https://www.aliexpress.com/item/32925895199.html
Named after print on the PCB.

Co-authored-by: user176176 <>
mcspr-patch-1
user176176 4 years ago
committed by GitHub
parent
commit
1d895d98b8
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 28 additions and 1 deletions
  1. +1
    -0
      code/espurna/config/arduino.h
  2. +22
    -1
      code/espurna/config/hardware.h
  3. +3
    -0
      code/platformio.ini
  4. +2
    -0
      code/platformio_ota.ini

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

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


+ 22
- 1
code/espurna/config/hardware.h View File

@ -4850,7 +4850,7 @@
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
// Prodino WIFI // Prodino WIFI
// https://kmpelectronics.eu/products/prodino-wifi-v1/ // https://kmpelectronics.eu/products/prodino-wifi-v1/
// -------------------------------------
// -----------------------------------------------------------------------------
#elif defined(PRODINO_WIFI) #elif defined(PRODINO_WIFI)
@ -4892,6 +4892,27 @@
#define LED1_PIN 2 #define LED1_PIN 2
#define LED1_PIN_INVERSE 1 #define LED1_PIN_INVERSE 1
// -----------------------------------------------------------------------------
// Fcmila E27 7W RGB+W Bulb
// https://www.aliexpress.com/item/32925895199.html
// -----------------------------------------------------------------------------
#elif defined(FCMILA_E27_7W_RGBW)
// Info
#define MANUFACTURER "FCMILA"
#define DEVICE "E27_7W_RGBW"
#define RELAY_PROVIDER RELAY_PROVIDER_LIGHT
#define LIGHT_PROVIDER LIGHT_PROVIDER_DIMMER
#define DUMMY_RELAY_COUNT 1
// Light
#define LIGHT_CHANNELS 4
#define LIGHT_CH1_PIN 4 // RED
#define LIGHT_CH2_PIN 12 // GREEN
#define LIGHT_CH3_PIN 14 // BLUE
#define LIGHT_CH4_PIN 5 // WHITE
#else #else
#error "UNSUPPORTED HARDWARE!!" #error "UNSUPPORTED HARDWARE!!"


+ 3
- 0
code/platformio.ini View File

@ -1049,3 +1049,6 @@ src_build_flags = -DARLEC_PB89HA
extends = env:esp8266-2m-base extends = env:esp8266-2m-base
src_build_flags = -DPRODINO_WIFI -DNOWSAUTH src_build_flags = -DPRODINO_WIFI -DNOWSAUTH
[env:fcmila-e27-7w-rgbw]
extends = env:esp8266-1m-base
src_build_flags = -DFCMILA_E27_7W_RGBW

+ 2
- 0
code/platformio_ota.ini View File

@ -471,3 +471,5 @@ extends = env:ehomediy-wt02
[env:ehomediy-wt03-ota] [env:ehomediy-wt03-ota]
extends = env:ehomediy-wt03 extends = env:ehomediy-wt03
[env:fcmila-e27-7w-rgbw-ota]
extends = env:fcmila-e27-7w-rgbw

Loading…
Cancel
Save