Skip to content

Commit

Permalink
hardware: add support for Mirabella Genio White A60 globe (#2439)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewleech committed Apr 22, 2021
1 parent 976176c commit 2fc559f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions code/espurna/config/arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@
//#define MAGICHOME_ZJ_WFMN_A_11
//#define MAGICHOME_ZJ_WFMN_B_11
//#define MAGICHOME_ZJ_WFMN_C_11
//#define MIRABELLA_GENIO_W_A60
//#define MANCAVEMADE_ESPLIVE
//#define MAXCIO_WDE004
//#define MAXCIO_WUK007S
Expand Down
17 changes: 17 additions & 0 deletions code/espurna/config/hardware.h
Original file line number Diff line number Diff line change
Expand Up @@ -4982,6 +4982,23 @@
#define LIGHT_CH2_PIN 4 // COLD WHITE LED PWM PIN
#define LIGHT_CH2_INVERSE 0

// -----------------------------------------------------------------------------
// Mirabella Genio White A60
// https://www.woolworths.com.au/shop/productdetails/877102/mirabella-smart-led-gls-es-9w-cool-white
// Like https://www.mirabellagenio.com.au/product-range/mirabella-genio-wi-fi-dimmable-9w-led-gls-bulb/
// but in cardboard box, Item # I002604
// -----------------------------------------------------------------------------

#elif defined(MIRABELLA_GENIO_W_A60)

// Info
#define MANUFACTURER "MIRABELLA"
#define DEVICE "GENIO_W_A60"
#define LIGHT_PROVIDER LIGHT_PROVIDER_DIMMER

// Light
#define LIGHT_CH1_PIN 14 // WHITE

#else

#error "UNSUPPORTED HARDWARE!!"
Expand Down
4 changes: 4 additions & 0 deletions code/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,10 @@ src_build_flags = -DMAGICHOME_ZJ_LB_RGBWW_L
extends = env:esp8266-1m-base
src_build_flags = -DMAGICHOME_ZJ_WFMN_C_11

[env:mirabella-genio-w-a60]
extends = env:esp8266-1m-base
src_build_flags = -DMIRABELLA_GENIO_W_A60

[env:huacanxing-h801]
extends = env:esp8266-1m-base
src_build_flags = -DHUACANXING_H801
Expand Down

0 comments on commit 2fc559f

Please sign in to comment.