From 6a5b757a24f851ad71d6ac4b86caf3212cff8fd8 Mon Sep 17 00:00:00 2001 From: cschwinne Date: Sun, 19 Apr 2020 13:25:27 +0200 Subject: [PATCH] TM1814 support (closes #518 ) --- wled00/FX_fcn.cpp | 2 ++ wled00/NpbWrapper.h | 8 ++++++++ wled00/wled.h | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/wled00/FX_fcn.cpp b/wled00/FX_fcn.cpp index 69b8c88a1..3614db492 100644 --- a/wled00/FX_fcn.cpp +++ b/wled00/FX_fcn.cpp @@ -146,6 +146,8 @@ void WS2812FX::setPixelColor(uint16_t i, byte r, byte g, byte b, byte w) default: col.G = g; col.R = b; col.B = r; break; //5 = GBR } col.W = w; + + //color_blend(BLACK, (uint32_t)col, SEGMENT.opacity); uint16_t skip = _skipFirstMode ? LED_SKIP_AMOUNT : 0; if (SEGLEN) {//from segment diff --git a/wled00/NpbWrapper.h b/wled00/NpbWrapper.h index 1f360bfc2..f3bcfd855 100644 --- a/wled00/NpbWrapper.h +++ b/wled00/NpbWrapper.h @@ -9,6 +9,7 @@ //#define USE_APA102 // Uncomment for using APA102 LEDs. //#define USE_WS2801 // Uncomment for using WS2801 LEDs (make sure you have NeoPixelBus v2.5.6 or newer) //#define USE_LPD8806 // Uncomment for using LPD8806 +//#define USE_TM1814 // Uncomment for using TM1814 LEDs (make sure you have NeoPixelBus v2.5.7 or newer) //#define USE_P9813 // Uncomment for using P9813 LEDs (make sure you have NeoPixelBus v2.5.8 or newer) //#define WLED_USE_ANALOG_LEDS //Uncomment for using "dumb" PWM controlled LEDs (see pins below, default R: gpio5, G: 12, B: 15, W: 13) //#define WLED_USE_H801 //H801 controller. Please uncomment #define WLED_USE_ANALOG_LEDS as well @@ -80,6 +81,8 @@ #define PIXELMETHOD NeoWs2801Method #elif defined(USE_LPD8806) #define PIXELMETHOD Lpd8806Method + #elif defined(USE_TM1814) + #define PIXELMETHOD NeoTm1814Method #elif defined(USE_P9813) #define PIXELMETHOD P9813Method #else @@ -93,6 +96,8 @@ #define PIXELMETHOD NeoWs2801Method #elif defined(USE_LPD8806) #define PIXELMETHOD Lpd8806Method + #elif defined(USE_TM1814) + #define PIXELMETHOD NeoTm1814Method #elif defined(USE_P9813) #define PIXELMETHOD P9813Method #elif LEDPIN == 2 @@ -113,6 +118,9 @@ #elif defined(USE_LPD8806) #define PIXELFEATURE3 Lpd8806GrbFeature #define PIXELFEATURE4 Lpd8806GrbFeature +#elif defined(USE_TM1814) + #define PIXELFEATURE3 NeoWrgbTm1814Feature + #define PIXELFEATURE4 NeoWrgbTm1814Feature #elif defined(USE_P9813) #define PIXELFEATURE3 P9813BgrFeature #define PIXELFEATURE4 NeoGrbwFeature diff --git a/wled00/wled.h b/wled00/wled.h index 122d58c1b..10343cc00 100644 --- a/wled00/wled.h +++ b/wled00/wled.h @@ -8,7 +8,7 @@ */ // version code in format yymmddb (b = daily build) -#define VERSION 2004120 +#define VERSION 2004190 // ESP8266-01 (blue) got too little storage space to work with all features of WLED. To use it, you must use ESP8266 Arduino Core v2.4.2 and the setting 512K(No SPIFFS).