From ee8a6e022a2766c41c9c7d425150537bbcc14806 Mon Sep 17 00:00:00 2001 From: konsgn Date: Fri, 12 Jul 2019 19:58:04 -0400 Subject: [PATCH] Nexete A19 RGBW bulb (#1814) * adding Nexete Started Adding Nexete A19 Bulb * Update hardware.h * fixed pinout * Rename to Nexete_A19 + added non-ota --- code/espurna/config/arduino.h | 1 + code/espurna/config/hardware.h | 26 ++++++++++++++++++++++++++ code/platformio.ini | 10 ++++++++++ 3 files changed, 37 insertions(+) diff --git a/code/espurna/config/arduino.h b/code/espurna/config/arduino.h index 83bf372f..98b293f4 100644 --- a/code/espurna/config/arduino.h +++ b/code/espurna/config/arduino.h @@ -100,6 +100,7 @@ //#define MAXCIO_WDE004 //#define MAXCIO_WUS002S //#define NEO_COOLCAM_NAS_WR01W +//#define NEXETE_A19 //#define NODEMCU_BASIC //#define NODEMCU_LOLIN //#define OPENENERGYMONITOR_MQTT_RELAY diff --git a/code/espurna/config/hardware.h b/code/espurna/config/hardware.h index 303dd215..41e61082 100644 --- a/code/espurna/config/hardware.h +++ b/code/espurna/config/hardware.h @@ -3245,6 +3245,32 @@ #define LIGHT_CH3_INVERSE 0 #define LIGHT_CH4_INVERSE 0 + +// ----------------------------------------------------------------------------- +// Nexete A19 +// https://www.ebay.com/itm/Wifi-Smart-LED-light-Bulb-9W-60W-A19-850LM-RGBW-Dimmable-for-Alexa-Google-Home/283514779201 +// ----------------------------------------------------------------------------- + +#elif defined(NEXETE_A19) + + // Info + #define MANUFACTURER "NEXETE" + #define DEVICE "A19" + #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 12 // RED + #define LIGHT_CH2_PIN 15 // GREEN + #define LIGHT_CH3_PIN 14 // BLUE + #define LIGHT_CH4_PIN 5 // WHITE + #define LIGHT_CH1_INVERSE 0 + #define LIGHT_CH2_INVERSE 0 + #define LIGHT_CH3_INVERSE 0 + #define LIGHT_CH4_INVERSE 0 + // ----------------------------------------------------------------------------- // Lombex Lux Nova 2 Tunable White // https://www.amazon.com/Lombex-Compatible-Equivalent-Dimmable-2700K-6500K/dp/B07B8K72PR diff --git a/code/platformio.ini b/code/platformio.ini index 58db5589..b86ae3e2 100644 --- a/code/platformio.ini +++ b/code/platformio.ini @@ -1460,6 +1460,16 @@ build_flags = ${common.build_flags_1m0m} -DGENERIC_GU10 upload_port = ${common.ota_upload_port} upload_flags = ${common.ota_upload_flags} +[env:nexete-a19] +board = ${common.board_1m} +build_flags = ${common.build_flags_1m0m} -DNEXETE_A19 + +[env:generic-nexete-a19-ota] +board = ${common.board_1m} +build_flags = ${common.build_flags_1m0m} -DNEXETE_A19 +upload_port = ${common.upload_port} +upload_flags = ${common.upload_flags} + [env:psh-wifi-plug] board = ${common.board_1m} build_flags = ${common.build_flags_1m0m} -DPSH_WIFI_PLUG