|
|
|
|
@@ -3,6 +3,18 @@
|
|
|
|
|
|
|
|
|
|
#include "NeoPixelBrightnessBus.h"
|
|
|
|
|
|
|
|
|
|
// temporary - these defines should actually be set in platformio.ini
|
|
|
|
|
// C3: I2S0 and I2S1 methods not supported
|
|
|
|
|
// S2: I2S1 methods not supported
|
|
|
|
|
// S3: I2S0 and I2S1 methods not supported yet
|
|
|
|
|
#if !defined(WLED_NO_I2S0_PIXELBUS) && (defined(CONFIG_IDF_TARGET_ESP32S3) || defined(CONFIG_IDF_TARGET_ESP32C3))
|
|
|
|
|
#define WLED_NO_I2S0_PIXELBUS
|
|
|
|
|
#endif
|
|
|
|
|
#if !defined(WLED_NO_I2S1_PIXELBUS) && (defined(CONFIG_IDF_TARGET_ESP32S3) || defined(CONFIG_IDF_TARGET_ESP32C3) || defined(CONFIG_IDF_TARGET_ESP32S2))
|
|
|
|
|
#define WLED_NO_I2S1_PIXELBUS
|
|
|
|
|
#endif
|
|
|
|
|
// temporary end
|
|
|
|
|
|
|
|
|
|
//Hardware SPI Pins
|
|
|
|
|
#define P_8266_HS_MOSI 13
|
|
|
|
|
#define P_8266_HS_CLK 14
|
|
|
|
|
@@ -117,43 +129,43 @@
|
|
|
|
|
#ifdef ARDUINO_ARCH_ESP32
|
|
|
|
|
//RGB
|
|
|
|
|
#define B_32_RN_NEO_3 NeoPixelBrightnessBus<NeoGrbFeature, NeoEsp32RmtNWs2812xMethod>
|
|
|
|
|
#ifndef CONFIG_IDF_TARGET_ESP32C3
|
|
|
|
|
#ifndef WLED_NO_I2S0_PIXELBUS
|
|
|
|
|
#define B_32_I0_NEO_3 NeoPixelBrightnessBus<NeoGrbFeature, NeoEsp32I2s0800KbpsMethod>
|
|
|
|
|
#endif
|
|
|
|
|
#if !defined(CONFIG_IDF_TARGET_ESP32S2) && !defined(CONFIG_IDF_TARGET_ESP32C3)
|
|
|
|
|
#ifndef WLED_NO_I2S1_PIXELBUS
|
|
|
|
|
#define B_32_I1_NEO_3 NeoPixelBrightnessBus<NeoGrbFeature, NeoEsp32I2s1800KbpsMethod>
|
|
|
|
|
#endif
|
|
|
|
|
//RGBW
|
|
|
|
|
#define B_32_RN_NEO_4 NeoPixelBrightnessBus<NeoGrbwFeature, NeoEsp32RmtNWs2812xMethod>
|
|
|
|
|
#ifndef CONFIG_IDF_TARGET_ESP32C3
|
|
|
|
|
#ifndef WLED_NO_I2S0_PIXELBUS
|
|
|
|
|
#define B_32_I0_NEO_4 NeoPixelBrightnessBus<NeoGrbwFeature, NeoEsp32I2s0800KbpsMethod>
|
|
|
|
|
#endif
|
|
|
|
|
#if !defined(CONFIG_IDF_TARGET_ESP32S2) && !defined(CONFIG_IDF_TARGET_ESP32C3)
|
|
|
|
|
#ifndef WLED_NO_I2S1_PIXELBUS
|
|
|
|
|
#define B_32_I1_NEO_4 NeoPixelBrightnessBus<NeoGrbwFeature, NeoEsp32I2s1800KbpsMethod>
|
|
|
|
|
#endif
|
|
|
|
|
//400Kbps
|
|
|
|
|
#define B_32_RN_400_3 NeoPixelBrightnessBus<NeoGrbFeature, NeoEsp32RmtN400KbpsMethod>
|
|
|
|
|
#ifndef CONFIG_IDF_TARGET_ESP32C3
|
|
|
|
|
#ifndef WLED_NO_I2S0_PIXELBUS
|
|
|
|
|
#define B_32_I0_400_3 NeoPixelBrightnessBus<NeoGrbFeature, NeoEsp32I2s0400KbpsMethod>
|
|
|
|
|
#endif
|
|
|
|
|
#if !defined(CONFIG_IDF_TARGET_ESP32S2) && !defined(CONFIG_IDF_TARGET_ESP32C3)
|
|
|
|
|
#ifndef WLED_NO_I2S1_PIXELBUS
|
|
|
|
|
#define B_32_I1_400_3 NeoPixelBrightnessBus<NeoGrbFeature, NeoEsp32I2s1400KbpsMethod>
|
|
|
|
|
#endif
|
|
|
|
|
//TM1814 (RGBW)
|
|
|
|
|
#define B_32_RN_TM1_4 NeoPixelBrightnessBus<NeoWrgbTm1814Feature, NeoEsp32RmtNTm1814Method>
|
|
|
|
|
#ifndef CONFIG_IDF_TARGET_ESP32C3
|
|
|
|
|
#ifndef WLED_NO_I2S0_PIXELBUS
|
|
|
|
|
#define B_32_I0_TM1_4 NeoPixelBrightnessBus<NeoWrgbTm1814Feature, NeoEsp32I2s0Tm1814Method>
|
|
|
|
|
#endif
|
|
|
|
|
#if !defined(CONFIG_IDF_TARGET_ESP32S2) && !defined(CONFIG_IDF_TARGET_ESP32C3)
|
|
|
|
|
#ifndef WLED_NO_I2S1_PIXELBUS
|
|
|
|
|
#define B_32_I1_TM1_4 NeoPixelBrightnessBus<NeoWrgbTm1814Feature, NeoEsp32I2s1Tm1814Method>
|
|
|
|
|
#endif
|
|
|
|
|
//Bit Bang theoratically possible, but very undesirable and not needed (no pin restrictions on RMT and I2S)
|
|
|
|
|
//TM1829 (RGB)
|
|
|
|
|
#define B_32_RN_TM2_3 NeoPixelBrightnessBus<NeoBrgFeature, NeoEsp32RmtNTm1829Method>
|
|
|
|
|
#ifndef CONFIG_IDF_TARGET_ESP32C3
|
|
|
|
|
#ifndef WLED_NO_I2S0_PIXELBUS
|
|
|
|
|
#define B_32_I0_TM2_3 NeoPixelBrightnessBus<NeoBrgFeature, NeoEsp32I2s0Tm1829Method>
|
|
|
|
|
#endif
|
|
|
|
|
#if !defined(CONFIG_IDF_TARGET_ESP32S2) && !defined(CONFIG_IDF_TARGET_ESP32C3)
|
|
|
|
|
#ifndef WLED_NO_I2S1_PIXELBUS
|
|
|
|
|
#define B_32_I1_TM2_3 NeoPixelBrightnessBus<NeoBrgFeature, NeoEsp32I2s1Tm1829Method>
|
|
|
|
|
#endif
|
|
|
|
|
//Bit Bang theoratically possible, but very undesirable and not needed (no pin restrictions on RMT and I2S)
|
|
|
|
|
@@ -237,33 +249,33 @@ class PolyBus {
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef ARDUINO_ARCH_ESP32
|
|
|
|
|
case I_32_RN_NEO_3: (static_cast<B_32_RN_NEO_3*>(busPtr))->Begin(); break;
|
|
|
|
|
#ifndef CONFIG_IDF_TARGET_ESP32C3
|
|
|
|
|
#ifndef WLED_NO_I2S0_PIXELBUS
|
|
|
|
|
case I_32_I0_NEO_3: (static_cast<B_32_I0_NEO_3*>(busPtr))->Begin(); break;
|
|
|
|
|
#endif
|
|
|
|
|
#if !defined(CONFIG_IDF_TARGET_ESP32S2) && !defined(CONFIG_IDF_TARGET_ESP32C3)
|
|
|
|
|
#ifndef WLED_NO_I2S1_PIXELBUS
|
|
|
|
|
case I_32_I1_NEO_3: (static_cast<B_32_I1_NEO_3*>(busPtr))->Begin(); break;
|
|
|
|
|
#endif
|
|
|
|
|
case I_32_RN_NEO_4: (static_cast<B_32_RN_NEO_4*>(busPtr))->Begin(); break;
|
|
|
|
|
#ifndef CONFIG_IDF_TARGET_ESP32C3
|
|
|
|
|
#ifndef WLED_NO_I2S0_PIXELBUS
|
|
|
|
|
case I_32_I0_NEO_4: (static_cast<B_32_I0_NEO_4*>(busPtr))->Begin(); break;
|
|
|
|
|
#endif
|
|
|
|
|
#if !defined(CONFIG_IDF_TARGET_ESP32S2) && !defined(CONFIG_IDF_TARGET_ESP32C3)
|
|
|
|
|
#ifndef WLED_NO_I2S1_PIXELBUS
|
|
|
|
|
case I_32_I1_NEO_4: (static_cast<B_32_I1_NEO_4*>(busPtr))->Begin(); break;
|
|
|
|
|
#endif
|
|
|
|
|
case I_32_RN_400_3: (static_cast<B_32_RN_400_3*>(busPtr))->Begin(); break;
|
|
|
|
|
#ifndef CONFIG_IDF_TARGET_ESP32C3
|
|
|
|
|
#ifndef WLED_NO_I2S0_PIXELBUS
|
|
|
|
|
case I_32_I0_400_3: (static_cast<B_32_I0_400_3*>(busPtr))->Begin(); break;
|
|
|
|
|
#endif
|
|
|
|
|
#if !defined(CONFIG_IDF_TARGET_ESP32S2) && !defined(CONFIG_IDF_TARGET_ESP32C3)
|
|
|
|
|
#ifndef WLED_NO_I2S1_PIXELBUS
|
|
|
|
|
case I_32_I1_400_3: (static_cast<B_32_I1_400_3*>(busPtr))->Begin(); break;
|
|
|
|
|
#endif
|
|
|
|
|
case I_32_RN_TM1_4: beginTM1814<B_32_RN_TM1_4*>(busPtr); break;
|
|
|
|
|
case I_32_RN_TM2_3: (static_cast<B_32_RN_TM2_3*>(busPtr))->Begin(); break;
|
|
|
|
|
#ifndef CONFIG_IDF_TARGET_ESP32C3
|
|
|
|
|
#ifndef WLED_NO_I2S0_PIXELBUS
|
|
|
|
|
case I_32_I0_TM1_4: beginTM1814<B_32_I0_TM1_4*>(busPtr); break;
|
|
|
|
|
case I_32_I0_TM2_3: (static_cast<B_32_I0_TM2_3*>(busPtr))->Begin(); break;
|
|
|
|
|
#endif
|
|
|
|
|
#if !defined(CONFIG_IDF_TARGET_ESP32S2) && !defined(CONFIG_IDF_TARGET_ESP32C3)
|
|
|
|
|
#ifndef WLED_NO_I2S1_PIXELBUS
|
|
|
|
|
case I_32_I1_TM1_4: beginTM1814<B_32_I1_TM1_4*>(busPtr); break;
|
|
|
|
|
case I_32_I1_TM2_3: (static_cast<B_32_I1_TM2_3*>(busPtr))->Begin(); break;
|
|
|
|
|
#endif
|
|
|
|
|
@@ -309,33 +321,33 @@ class PolyBus {
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef ARDUINO_ARCH_ESP32
|
|
|
|
|
case I_32_RN_NEO_3: busPtr = new B_32_RN_NEO_3(len, pins[0], (NeoBusChannel)channel); break;
|
|
|
|
|
#ifndef CONFIG_IDF_TARGET_ESP32C3
|
|
|
|
|
#ifndef WLED_NO_I2S0_PIXELBUS
|
|
|
|
|
case I_32_I0_NEO_3: busPtr = new B_32_I0_NEO_3(len, pins[0]); break;
|
|
|
|
|
#endif
|
|
|
|
|
#if !defined(CONFIG_IDF_TARGET_ESP32S2) && !defined(CONFIG_IDF_TARGET_ESP32C3)
|
|
|
|
|
#ifndef WLED_NO_I2S1_PIXELBUS
|
|
|
|
|
case I_32_I1_NEO_3: busPtr = new B_32_I1_NEO_3(len, pins[0]); break;
|
|
|
|
|
#endif
|
|
|
|
|
case I_32_RN_NEO_4: busPtr = new B_32_RN_NEO_4(len, pins[0], (NeoBusChannel)channel); break;
|
|
|
|
|
#ifndef CONFIG_IDF_TARGET_ESP32C3
|
|
|
|
|
#ifndef WLED_NO_I2S0_PIXELBUS
|
|
|
|
|
case I_32_I0_NEO_4: busPtr = new B_32_I0_NEO_4(len, pins[0]); break;
|
|
|
|
|
#endif
|
|
|
|
|
#if !defined(CONFIG_IDF_TARGET_ESP32S2) && !defined(CONFIG_IDF_TARGET_ESP32C3)
|
|
|
|
|
#ifndef WLED_NO_I2S1_PIXELBUS
|
|
|
|
|
case I_32_I1_NEO_4: busPtr = new B_32_I1_NEO_4(len, pins[0]); break;
|
|
|
|
|
#endif
|
|
|
|
|
case I_32_RN_400_3: busPtr = new B_32_RN_400_3(len, pins[0], (NeoBusChannel)channel); break;
|
|
|
|
|
#ifndef CONFIG_IDF_TARGET_ESP32C3
|
|
|
|
|
#ifndef WLED_NO_I2S0_PIXELBUS
|
|
|
|
|
case I_32_I0_400_3: busPtr = new B_32_I0_400_3(len, pins[0]); break;
|
|
|
|
|
#endif
|
|
|
|
|
#if !defined(CONFIG_IDF_TARGET_ESP32S2) && !defined(CONFIG_IDF_TARGET_ESP32C3)
|
|
|
|
|
#ifndef WLED_NO_I2S1_PIXELBUS
|
|
|
|
|
case I_32_I1_400_3: busPtr = new B_32_I1_400_3(len, pins[0]); break;
|
|
|
|
|
#endif
|
|
|
|
|
case I_32_RN_TM1_4: busPtr = new B_32_RN_TM1_4(len, pins[0], (NeoBusChannel)channel); break;
|
|
|
|
|
case I_32_RN_TM2_3: busPtr = new B_32_RN_TM2_3(len, pins[0], (NeoBusChannel)channel); break;
|
|
|
|
|
#ifndef CONFIG_IDF_TARGET_ESP32C3
|
|
|
|
|
#ifndef WLED_NO_I2S0_PIXELBUS
|
|
|
|
|
case I_32_I0_TM1_4: busPtr = new B_32_I0_TM1_4(len, pins[0]); break;
|
|
|
|
|
case I_32_I0_TM2_3: busPtr = new B_32_I0_TM2_3(len, pins[0]); break;
|
|
|
|
|
#endif
|
|
|
|
|
#if !defined(CONFIG_IDF_TARGET_ESP32S2) && !defined(CONFIG_IDF_TARGET_ESP32C3)
|
|
|
|
|
#ifndef WLED_NO_I2S1_PIXELBUS
|
|
|
|
|
case I_32_I1_TM1_4: busPtr = new B_32_I1_TM1_4(len, pins[0]); break;
|
|
|
|
|
case I_32_I1_TM2_3: busPtr = new B_32_I1_TM2_3(len, pins[0]); break;
|
|
|
|
|
#endif
|
|
|
|
|
@@ -382,33 +394,33 @@ class PolyBus {
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef ARDUINO_ARCH_ESP32
|
|
|
|
|
case I_32_RN_NEO_3: (static_cast<B_32_RN_NEO_3*>(busPtr))->Show(); break;
|
|
|
|
|
#ifndef CONFIG_IDF_TARGET_ESP32C3
|
|
|
|
|
#ifndef WLED_NO_I2S0_PIXELBUS
|
|
|
|
|
case I_32_I0_NEO_3: (static_cast<B_32_I0_NEO_3*>(busPtr))->Show(); break;
|
|
|
|
|
#endif
|
|
|
|
|
#if !defined(CONFIG_IDF_TARGET_ESP32S2) && !defined(CONFIG_IDF_TARGET_ESP32C3)
|
|
|
|
|
#ifndef WLED_NO_I2S1_PIXELBUS
|
|
|
|
|
case I_32_I1_NEO_3: (static_cast<B_32_I1_NEO_3*>(busPtr))->Show(); break;
|
|
|
|
|
#endif
|
|
|
|
|
case I_32_RN_NEO_4: (static_cast<B_32_RN_NEO_4*>(busPtr))->Show(); break;
|
|
|
|
|
#ifndef CONFIG_IDF_TARGET_ESP32C3
|
|
|
|
|
#ifndef WLED_NO_I2S0_PIXELBUS
|
|
|
|
|
case I_32_I0_NEO_4: (static_cast<B_32_I0_NEO_4*>(busPtr))->Show(); break;
|
|
|
|
|
#endif
|
|
|
|
|
#if !defined(CONFIG_IDF_TARGET_ESP32S2) && !defined(CONFIG_IDF_TARGET_ESP32C3)
|
|
|
|
|
#ifndef WLED_NO_I2S1_PIXELBUS
|
|
|
|
|
case I_32_I1_NEO_4: (static_cast<B_32_I1_NEO_4*>(busPtr))->Show(); break;
|
|
|
|
|
#endif
|
|
|
|
|
case I_32_RN_400_3: (static_cast<B_32_RN_400_3*>(busPtr))->Show(); break;
|
|
|
|
|
#ifndef CONFIG_IDF_TARGET_ESP32C3
|
|
|
|
|
#ifndef WLED_NO_I2S0_PIXELBUS
|
|
|
|
|
case I_32_I0_400_3: (static_cast<B_32_I0_400_3*>(busPtr))->Show(); break;
|
|
|
|
|
#endif
|
|
|
|
|
#if !defined(CONFIG_IDF_TARGET_ESP32S2) && !defined(CONFIG_IDF_TARGET_ESP32C3)
|
|
|
|
|
#ifndef WLED_NO_I2S1_PIXELBUS
|
|
|
|
|
case I_32_I1_400_3: (static_cast<B_32_I1_400_3*>(busPtr))->Show(); break;
|
|
|
|
|
#endif
|
|
|
|
|
case I_32_RN_TM1_4: (static_cast<B_32_RN_TM1_4*>(busPtr))->Show(); break;
|
|
|
|
|
case I_32_RN_TM2_3: (static_cast<B_32_RN_TM2_3*>(busPtr))->Show(); break;
|
|
|
|
|
#ifndef CONFIG_IDF_TARGET_ESP32C3
|
|
|
|
|
#ifndef WLED_NO_I2S0_PIXELBUS
|
|
|
|
|
case I_32_I0_TM1_4: (static_cast<B_32_I0_TM1_4*>(busPtr))->Show(); break;
|
|
|
|
|
case I_32_I0_TM2_3: (static_cast<B_32_I0_TM2_3*>(busPtr))->Show(); break;
|
|
|
|
|
#endif
|
|
|
|
|
#if !defined(CONFIG_IDF_TARGET_ESP32S2) && !defined(CONFIG_IDF_TARGET_ESP32C3)
|
|
|
|
|
#ifndef WLED_NO_I2S1_PIXELBUS
|
|
|
|
|
case I_32_I1_TM1_4: (static_cast<B_32_I1_TM1_4*>(busPtr))->Show(); break;
|
|
|
|
|
case I_32_I1_TM2_3: (static_cast<B_32_I1_TM2_3*>(busPtr))->Show(); break;
|
|
|
|
|
#endif
|
|
|
|
|
@@ -452,33 +464,33 @@ class PolyBus {
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef ARDUINO_ARCH_ESP32
|
|
|
|
|
case I_32_RN_NEO_3: return (static_cast<B_32_RN_NEO_3*>(busPtr))->CanShow(); break;
|
|
|
|
|
#ifndef CONFIG_IDF_TARGET_ESP32C3
|
|
|
|
|
#ifndef WLED_NO_I2S0_PIXELBUS
|
|
|
|
|
case I_32_I0_NEO_3: return (static_cast<B_32_I0_NEO_3*>(busPtr))->CanShow(); break;
|
|
|
|
|
#endif
|
|
|
|
|
#if !defined(CONFIG_IDF_TARGET_ESP32S2) && !defined(CONFIG_IDF_TARGET_ESP32C3)
|
|
|
|
|
#ifndef WLED_NO_I2S1_PIXELBUS
|
|
|
|
|
case I_32_I1_NEO_3: return (static_cast<B_32_I1_NEO_3*>(busPtr))->CanShow(); break;
|
|
|
|
|
#endif
|
|
|
|
|
case I_32_RN_NEO_4: return (static_cast<B_32_RN_NEO_4*>(busPtr))->CanShow(); break;
|
|
|
|
|
#ifndef CONFIG_IDF_TARGET_ESP32C3
|
|
|
|
|
#ifndef WLED_NO_I2S0_PIXELBUS
|
|
|
|
|
case I_32_I0_NEO_4: return (static_cast<B_32_I0_NEO_4*>(busPtr))->CanShow(); break;
|
|
|
|
|
#endif
|
|
|
|
|
#if !defined(CONFIG_IDF_TARGET_ESP32S2) && !defined(CONFIG_IDF_TARGET_ESP32C3)
|
|
|
|
|
#ifndef WLED_NO_I2S1_PIXELBUS
|
|
|
|
|
case I_32_I1_NEO_4: return (static_cast<B_32_I1_NEO_4*>(busPtr))->CanShow(); break;
|
|
|
|
|
#endif
|
|
|
|
|
case I_32_RN_400_3: return (static_cast<B_32_RN_400_3*>(busPtr))->CanShow(); break;
|
|
|
|
|
#ifndef CONFIG_IDF_TARGET_ESP32C3
|
|
|
|
|
#ifndef WLED_NO_I2S0_PIXELBUS
|
|
|
|
|
case I_32_I0_400_3: return (static_cast<B_32_I0_400_3*>(busPtr))->CanShow(); break;
|
|
|
|
|
#endif
|
|
|
|
|
#if !defined(CONFIG_IDF_TARGET_ESP32S2) && !defined(CONFIG_IDF_TARGET_ESP32C3)
|
|
|
|
|
#ifndef WLED_NO_I2S1_PIXELBUS
|
|
|
|
|
case I_32_I1_400_3: return (static_cast<B_32_I1_400_3*>(busPtr))->CanShow(); break;
|
|
|
|
|
#endif
|
|
|
|
|
case I_32_RN_TM1_4: return (static_cast<B_32_RN_TM1_4*>(busPtr))->CanShow(); break;
|
|
|
|
|
case I_32_RN_TM2_3: return (static_cast<B_32_RN_TM2_3*>(busPtr))->CanShow(); break;
|
|
|
|
|
#ifndef CONFIG_IDF_TARGET_ESP32C3
|
|
|
|
|
#ifndef WLED_NO_I2S0_PIXELBUS
|
|
|
|
|
case I_32_I0_TM1_4: return (static_cast<B_32_I0_TM1_4*>(busPtr))->CanShow(); break;
|
|
|
|
|
case I_32_I0_TM2_3: return (static_cast<B_32_I0_TM2_3*>(busPtr))->CanShow(); break;
|
|
|
|
|
#endif
|
|
|
|
|
#if !defined(CONFIG_IDF_TARGET_ESP32S2) && !defined(CONFIG_IDF_TARGET_ESP32C3)
|
|
|
|
|
#ifndef WLED_NO_I2S1_PIXELBUS
|
|
|
|
|
case I_32_I1_TM1_4: return (static_cast<B_32_I1_TM1_4*>(busPtr))->CanShow(); break;
|
|
|
|
|
case I_32_I1_TM2_3: return (static_cast<B_32_I1_TM2_3*>(busPtr))->CanShow(); break;
|
|
|
|
|
#endif
|
|
|
|
|
@@ -546,33 +558,33 @@ class PolyBus {
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef ARDUINO_ARCH_ESP32
|
|
|
|
|
case I_32_RN_NEO_3: (static_cast<B_32_RN_NEO_3*>(busPtr))->SetPixelColor(pix, RgbColor(col.R,col.G,col.B)); break;
|
|
|
|
|
#ifndef CONFIG_IDF_TARGET_ESP32C3
|
|
|
|
|
#ifndef WLED_NO_I2S0_PIXELBUS
|
|
|
|
|
case I_32_I0_NEO_3: (static_cast<B_32_I0_NEO_3*>(busPtr))->SetPixelColor(pix, RgbColor(col.R,col.G,col.B)); break;
|
|
|
|
|
#endif
|
|
|
|
|
#if !defined(CONFIG_IDF_TARGET_ESP32S2) && !defined(CONFIG_IDF_TARGET_ESP32C3)
|
|
|
|
|
#ifndef WLED_NO_I2S1_PIXELBUS
|
|
|
|
|
case I_32_I1_NEO_3: (static_cast<B_32_I1_NEO_3*>(busPtr))->SetPixelColor(pix, RgbColor(col.R,col.G,col.B)); break;
|
|
|
|
|
#endif
|
|
|
|
|
case I_32_RN_NEO_4: (static_cast<B_32_RN_NEO_4*>(busPtr))->SetPixelColor(pix, col); break;
|
|
|
|
|
#ifndef CONFIG_IDF_TARGET_ESP32C3
|
|
|
|
|
#ifndef WLED_NO_I2S0_PIXELBUS
|
|
|
|
|
case I_32_I0_NEO_4: (static_cast<B_32_I0_NEO_4*>(busPtr))->SetPixelColor(pix, col); break;
|
|
|
|
|
#endif
|
|
|
|
|
#if !defined(CONFIG_IDF_TARGET_ESP32S2) && !defined(CONFIG_IDF_TARGET_ESP32C3)
|
|
|
|
|
#ifndef WLED_NO_I2S1_PIXELBUS
|
|
|
|
|
case I_32_I1_NEO_4: (static_cast<B_32_I1_NEO_4*>(busPtr))->SetPixelColor(pix, col); break;
|
|
|
|
|
#endif
|
|
|
|
|
case I_32_RN_400_3: (static_cast<B_32_RN_400_3*>(busPtr))->SetPixelColor(pix, RgbColor(col.R,col.G,col.B)); break;
|
|
|
|
|
#ifndef CONFIG_IDF_TARGET_ESP32C3
|
|
|
|
|
#ifndef WLED_NO_I2S0_PIXELBUS
|
|
|
|
|
case I_32_I0_400_3: (static_cast<B_32_I0_400_3*>(busPtr))->SetPixelColor(pix, RgbColor(col.R,col.G,col.B)); break;
|
|
|
|
|
#endif
|
|
|
|
|
#if !defined(CONFIG_IDF_TARGET_ESP32S2) && !defined(CONFIG_IDF_TARGET_ESP32C3)
|
|
|
|
|
#ifndef WLED_NO_I2S1_PIXELBUS
|
|
|
|
|
case I_32_I1_400_3: (static_cast<B_32_I1_400_3*>(busPtr))->SetPixelColor(pix, RgbColor(col.R,col.G,col.B)); break;
|
|
|
|
|
#endif
|
|
|
|
|
case I_32_RN_TM1_4: (static_cast<B_32_RN_TM1_4*>(busPtr))->SetPixelColor(pix, col); break;
|
|
|
|
|
case I_32_RN_TM2_3: (static_cast<B_32_RN_TM2_3*>(busPtr))->SetPixelColor(pix, RgbColor(col.R,col.G,col.B)); break;
|
|
|
|
|
#ifndef CONFIG_IDF_TARGET_ESP32C3
|
|
|
|
|
#ifndef WLED_NO_I2S0_PIXELBUS
|
|
|
|
|
case I_32_I0_TM1_4: (static_cast<B_32_I0_TM1_4*>(busPtr))->SetPixelColor(pix, col); break;
|
|
|
|
|
case I_32_I0_TM2_3: (static_cast<B_32_I0_TM2_3*>(busPtr))->SetPixelColor(pix, RgbColor(col.R,col.G,col.B)); break;
|
|
|
|
|
#endif
|
|
|
|
|
#if !defined(CONFIG_IDF_TARGET_ESP32S2) && !defined(CONFIG_IDF_TARGET_ESP32C3)
|
|
|
|
|
#ifndef WLED_NO_I2S1_PIXELBUS
|
|
|
|
|
case I_32_I1_TM1_4: (static_cast<B_32_I1_TM1_4*>(busPtr))->SetPixelColor(pix, col); break;
|
|
|
|
|
case I_32_I1_TM2_3: (static_cast<B_32_I1_TM2_3*>(busPtr))->SetPixelColor(pix, RgbColor(col.R,col.G,col.B)); break;
|
|
|
|
|
#endif
|
|
|
|
|
@@ -616,33 +628,33 @@ class PolyBus {
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef ARDUINO_ARCH_ESP32
|
|
|
|
|
case I_32_RN_NEO_3: (static_cast<B_32_RN_NEO_3*>(busPtr))->SetBrightness(b); break;
|
|
|
|
|
#ifndef CONFIG_IDF_TARGET_ESP32C3
|
|
|
|
|
#ifndef WLED_NO_I2S0_PIXELBUS
|
|
|
|
|
case I_32_I0_NEO_3: (static_cast<B_32_I0_NEO_3*>(busPtr))->SetBrightness(b); break;
|
|
|
|
|
#endif
|
|
|
|
|
#if !defined(CONFIG_IDF_TARGET_ESP32S2) && !defined(CONFIG_IDF_TARGET_ESP32C3)
|
|
|
|
|
#ifndef WLED_NO_I2S1_PIXELBUS
|
|
|
|
|
case I_32_I1_NEO_3: (static_cast<B_32_I1_NEO_3*>(busPtr))->SetBrightness(b); break;
|
|
|
|
|
#endif
|
|
|
|
|
case I_32_RN_NEO_4: (static_cast<B_32_RN_NEO_4*>(busPtr))->SetBrightness(b); break;
|
|
|
|
|
#ifndef CONFIG_IDF_TARGET_ESP32C3
|
|
|
|
|
#ifndef WLED_NO_I2S0_PIXELBUS
|
|
|
|
|
case I_32_I0_NEO_4: (static_cast<B_32_I0_NEO_4*>(busPtr))->SetBrightness(b); break;
|
|
|
|
|
#endif
|
|
|
|
|
#if !defined(CONFIG_IDF_TARGET_ESP32S2) && !defined(CONFIG_IDF_TARGET_ESP32C3)
|
|
|
|
|
#ifndef WLED_NO_I2S1_PIXELBUS
|
|
|
|
|
case I_32_I1_NEO_4: (static_cast<B_32_I1_NEO_4*>(busPtr))->SetBrightness(b); break;
|
|
|
|
|
#endif
|
|
|
|
|
case I_32_RN_400_3: (static_cast<B_32_RN_400_3*>(busPtr))->SetBrightness(b); break;
|
|
|
|
|
#ifndef CONFIG_IDF_TARGET_ESP32C3
|
|
|
|
|
#ifndef WLED_NO_I2S0_PIXELBUS
|
|
|
|
|
case I_32_I0_400_3: (static_cast<B_32_I0_400_3*>(busPtr))->SetBrightness(b); break;
|
|
|
|
|
#endif
|
|
|
|
|
#if !defined(CONFIG_IDF_TARGET_ESP32S2) && !defined(CONFIG_IDF_TARGET_ESP32C3)
|
|
|
|
|
#ifndef WLED_NO_I2S1_PIXELBUS
|
|
|
|
|
case I_32_I1_400_3: (static_cast<B_32_I1_400_3*>(busPtr))->SetBrightness(b); break;
|
|
|
|
|
#endif
|
|
|
|
|
case I_32_RN_TM1_4: (static_cast<B_32_RN_TM1_4*>(busPtr))->SetBrightness(b); break;
|
|
|
|
|
case I_32_RN_TM2_3: (static_cast<B_32_RN_TM2_3*>(busPtr))->SetBrightness(b); break;
|
|
|
|
|
#ifndef CONFIG_IDF_TARGET_ESP32C3
|
|
|
|
|
#ifndef WLED_NO_I2S0_PIXELBUS
|
|
|
|
|
case I_32_I0_TM1_4: (static_cast<B_32_I0_TM1_4*>(busPtr))->SetBrightness(b); break;
|
|
|
|
|
case I_32_I0_TM2_3: (static_cast<B_32_I0_TM2_3*>(busPtr))->SetBrightness(b); break;
|
|
|
|
|
#endif
|
|
|
|
|
#if !defined(CONFIG_IDF_TARGET_ESP32S2) && !defined(CONFIG_IDF_TARGET_ESP32C3)
|
|
|
|
|
#ifndef WLED_NO_I2S1_PIXELBUS
|
|
|
|
|
case I_32_I1_TM1_4: (static_cast<B_32_I1_TM1_4*>(busPtr))->SetBrightness(b); break;
|
|
|
|
|
case I_32_I1_TM2_3: (static_cast<B_32_I1_TM2_3*>(busPtr))->SetBrightness(b); break;
|
|
|
|
|
#endif
|
|
|
|
|
@@ -687,33 +699,33 @@ class PolyBus {
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef ARDUINO_ARCH_ESP32
|
|
|
|
|
case I_32_RN_NEO_3: col = (static_cast<B_32_RN_NEO_3*>(busPtr))->GetPixelColor(pix); break;
|
|
|
|
|
#ifndef CONFIG_IDF_TARGET_ESP32C3
|
|
|
|
|
#ifndef WLED_NO_I2S0_PIXELBUS
|
|
|
|
|
case I_32_I0_NEO_3: col = (static_cast<B_32_I0_NEO_3*>(busPtr))->GetPixelColor(pix); break;
|
|
|
|
|
#endif
|
|
|
|
|
#if !defined(CONFIG_IDF_TARGET_ESP32S2) && !defined(CONFIG_IDF_TARGET_ESP32C3)
|
|
|
|
|
#ifndef WLED_NO_I2S1_PIXELBUS
|
|
|
|
|
case I_32_I1_NEO_3: col = (static_cast<B_32_I1_NEO_3*>(busPtr))->GetPixelColor(pix); break;
|
|
|
|
|
#endif
|
|
|
|
|
case I_32_RN_NEO_4: col = (static_cast<B_32_RN_NEO_4*>(busPtr))->GetPixelColor(pix); break;
|
|
|
|
|
#ifndef CONFIG_IDF_TARGET_ESP32C3
|
|
|
|
|
#ifndef WLED_NO_I2S0_PIXELBUS
|
|
|
|
|
case I_32_I0_NEO_4: col = (static_cast<B_32_I0_NEO_4*>(busPtr))->GetPixelColor(pix); break;
|
|
|
|
|
#endif
|
|
|
|
|
#if !defined(CONFIG_IDF_TARGET_ESP32S2) && !defined(CONFIG_IDF_TARGET_ESP32C3)
|
|
|
|
|
#ifndef WLED_NO_I2S1_PIXELBUS
|
|
|
|
|
case I_32_I1_NEO_4: col = (static_cast<B_32_I1_NEO_4*>(busPtr))->GetPixelColor(pix); break;
|
|
|
|
|
#endif
|
|
|
|
|
case I_32_RN_400_3: col = (static_cast<B_32_RN_400_3*>(busPtr))->GetPixelColor(pix); break;
|
|
|
|
|
#ifndef CONFIG_IDF_TARGET_ESP32C3
|
|
|
|
|
#ifndef WLED_NO_I2S0_PIXELBUS
|
|
|
|
|
case I_32_I0_400_3: col = (static_cast<B_32_I0_400_3*>(busPtr))->GetPixelColor(pix); break;
|
|
|
|
|
#endif
|
|
|
|
|
#if !defined(CONFIG_IDF_TARGET_ESP32S2) && !defined(CONFIG_IDF_TARGET_ESP32C3)
|
|
|
|
|
#ifndef WLED_NO_I2S1_PIXELBUS
|
|
|
|
|
case I_32_I1_400_3: col = (static_cast<B_32_I1_400_3*>(busPtr))->GetPixelColor(pix); break;
|
|
|
|
|
#endif
|
|
|
|
|
case I_32_RN_TM1_4: col = (static_cast<B_32_RN_TM1_4*>(busPtr))->GetPixelColor(pix); break;
|
|
|
|
|
case I_32_RN_TM2_3: col = (static_cast<B_32_RN_TM2_3*>(busPtr))->GetPixelColor(pix); break;
|
|
|
|
|
#ifndef CONFIG_IDF_TARGET_ESP32C3
|
|
|
|
|
#ifndef WLED_NO_I2S0_PIXELBUS
|
|
|
|
|
case I_32_I0_TM1_4: col = (static_cast<B_32_I0_TM1_4*>(busPtr))->GetPixelColor(pix); break;
|
|
|
|
|
case I_32_I0_TM2_3: col = (static_cast<B_32_I0_TM2_3*>(busPtr))->GetPixelColor(pix); break;
|
|
|
|
|
#endif
|
|
|
|
|
#if !defined(CONFIG_IDF_TARGET_ESP32S2) && !defined(CONFIG_IDF_TARGET_ESP32C3)
|
|
|
|
|
#ifndef WLED_NO_I2S1_PIXELBUS
|
|
|
|
|
case I_32_I1_TM1_4: col = (static_cast<B_32_I1_TM1_4*>(busPtr))->GetPixelColor(pix); break;
|
|
|
|
|
case I_32_I1_TM2_3: col = (static_cast<B_32_I1_TM2_3*>(busPtr))->GetPixelColor(pix); break;
|
|
|
|
|
#endif
|
|
|
|
|
@@ -777,33 +789,33 @@ class PolyBus {
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef ARDUINO_ARCH_ESP32
|
|
|
|
|
case I_32_RN_NEO_3: delete (static_cast<B_32_RN_NEO_3*>(busPtr)); break;
|
|
|
|
|
#ifndef CONFIG_IDF_TARGET_ESP32C3
|
|
|
|
|
#ifndef WLED_NO_I2S0_PIXELBUS
|
|
|
|
|
case I_32_I0_NEO_3: delete (static_cast<B_32_I0_NEO_3*>(busPtr)); break;
|
|
|
|
|
#endif
|
|
|
|
|
#if !defined(CONFIG_IDF_TARGET_ESP32S2) && !defined(CONFIG_IDF_TARGET_ESP32C3)
|
|
|
|
|
#ifndef WLED_NO_I2S1_PIXELBUS
|
|
|
|
|
case I_32_I1_NEO_3: delete (static_cast<B_32_I1_NEO_3*>(busPtr)); break;
|
|
|
|
|
#endif
|
|
|
|
|
case I_32_RN_NEO_4: delete (static_cast<B_32_RN_NEO_4*>(busPtr)); break;
|
|
|
|
|
#ifndef CONFIG_IDF_TARGET_ESP32C3
|
|
|
|
|
#ifndef WLED_NO_I2S0_PIXELBUS
|
|
|
|
|
case I_32_I0_NEO_4: delete (static_cast<B_32_I0_NEO_4*>(busPtr)); break;
|
|
|
|
|
#endif
|
|
|
|
|
#if !defined(CONFIG_IDF_TARGET_ESP32S2) && !defined(CONFIG_IDF_TARGET_ESP32C3)
|
|
|
|
|
#ifndef WLED_NO_I2S1_PIXELBUS
|
|
|
|
|
case I_32_I1_NEO_4: delete (static_cast<B_32_I1_NEO_4*>(busPtr)); break;
|
|
|
|
|
#endif
|
|
|
|
|
case I_32_RN_400_3: delete (static_cast<B_32_RN_400_3*>(busPtr)); break;
|
|
|
|
|
#ifndef CONFIG_IDF_TARGET_ESP32C3
|
|
|
|
|
#ifndef WLED_NO_I2S0_PIXELBUS
|
|
|
|
|
case I_32_I0_400_3: delete (static_cast<B_32_I0_400_3*>(busPtr)); break;
|
|
|
|
|
#endif
|
|
|
|
|
#if !defined(CONFIG_IDF_TARGET_ESP32S2) && !defined(CONFIG_IDF_TARGET_ESP32C3)
|
|
|
|
|
#ifndef WLED_NO_I2S1_PIXELBUS
|
|
|
|
|
case I_32_I1_400_3: delete (static_cast<B_32_I1_400_3*>(busPtr)); break;
|
|
|
|
|
#endif
|
|
|
|
|
case I_32_RN_TM1_4: delete (static_cast<B_32_RN_TM1_4*>(busPtr)); break;
|
|
|
|
|
case I_32_RN_TM2_3: delete (static_cast<B_32_RN_TM2_3*>(busPtr)); break;
|
|
|
|
|
#ifndef CONFIG_IDF_TARGET_ESP32C3
|
|
|
|
|
#ifndef WLED_NO_I2S0_PIXELBUS
|
|
|
|
|
case I_32_I0_TM1_4: delete (static_cast<B_32_I0_TM1_4*>(busPtr)); break;
|
|
|
|
|
case I_32_I0_TM2_3: delete (static_cast<B_32_I0_TM2_3*>(busPtr)); break;
|
|
|
|
|
#endif
|
|
|
|
|
#if !defined(CONFIG_IDF_TARGET_ESP32S2) && !defined(CONFIG_IDF_TARGET_ESP32C3)
|
|
|
|
|
#ifndef WLED_NO_I2S1_PIXELBUS
|
|
|
|
|
case I_32_I1_TM1_4: delete (static_cast<B_32_I1_TM1_4*>(busPtr)); break;
|
|
|
|
|
case I_32_I1_TM2_3: delete (static_cast<B_32_I1_TM2_3*>(busPtr)); break;
|
|
|
|
|
#endif
|
|
|
|
|
|