From c617584f0bdc3c29a5d259ba58b97fad7c08445d Mon Sep 17 00:00:00 2001 From: Frank <91616163+softhack007@users.noreply.github.com> Date: Wed, 5 Jun 2024 13:28:36 +0200 Subject: [PATCH 1/4] bugfix for -S3: allow to use pin 48 for LEDs needed on boards like "S3 supermini" with ws2812 on gpio48 --- wled00/xml.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wled00/xml.cpp b/wled00/xml.cpp index 0c6a1566..72fdf219 100644 --- a/wled00/xml.cpp +++ b/wled00/xml.cpp @@ -269,9 +269,9 @@ void appendGPIOinfo() { // add info about max. # of pins oappend(SET_F("d.max_gpio=")); - #if defined(ESP32) + #if defined(ESP32) && !defined(CONFIG_IDF_TARGET_ESP32S3) oappendi(NUM_DIGITAL_PINS - 1); - #else //8266 + #else //8266 (max=17), or esp32-S3 (max=48) oappendi(NUM_DIGITAL_PINS); //WLEDMM include pin 17 for Analog #endif oappend(SET_F(";")); From b79a0b4fd75d70bf67a2e8c210a1f9cf5a276cbc Mon Sep 17 00:00:00 2001 From: Frank <91616163+softhack007@users.noreply.github.com> Date: Wed, 5 Jun 2024 17:29:57 +0200 Subject: [PATCH 2/4] use NPB 2.7.9 on -S2 -> reduces led flickering --- platformio.ini | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platformio.ini b/platformio.ini index 0e303f8d..290f2ef3 100644 --- a/platformio.ini +++ b/platformio.ini @@ -415,8 +415,8 @@ build_flags = -g lib_deps = https://github.com/pbolduc/AsyncTCP.git @ 1.2.0 - makuna/NeoPixelBus @ 2.7.5 - ;; makuna/NeoPixelBus @ 2.7.9 ;; experimental + ;; makuna/NeoPixelBus @ 2.7.5 ;; standard + makuna/NeoPixelBus @ 2.7.9 ;; experimental - reduces LED glitches on -S2 ${env.lib_deps} [esp32c3] From 578c6bb9d899dbf21bcd8e0e0207d42ed1a52891 Mon Sep 17 00:00:00 2001 From: Frank <91616163+softhack007@users.noreply.github.com> Date: Wed, 5 Jun 2024 23:05:34 +0200 Subject: [PATCH 3/4] make sure that HUB75 is recognized as "adressable leds" when IS_DIGITAL and IS_PWM are false, palettes and color wheel are not shown in UI --- wled00/const.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wled00/const.h b/wled00/const.h index 8f690ac9..7857a1d3 100644 --- a/wled00/const.h +++ b/wled00/const.h @@ -253,7 +253,7 @@ #define TYPE_NET_ARTNET_RGB 82 //network ArtNet RGB bus (master broadcast bus, unused) #define TYPE_NET_DDP_RGBW 88 //network DDP RGBW bus (master broadcast bus) -#define IS_DIGITAL(t) ((t) & 0x10) //digital are 16-31 and 48-63 +#define IS_DIGITAL(t) (((t) & 0x10) || ((t)==TYPE_HUB75MATRIX)) //digital are 16-31 and 48-63 // WLEDMM added HUB75 #define IS_PWM(t) ((t) > 40 && (t) < 46) #define NUM_PWM_PINS(t) ((t) - 40) //for analog PWM 41-45 only #define IS_2PIN(t) ((t) > 47) From fc173b3bc00694e59b653ca230133052b5476c05 Mon Sep 17 00:00:00 2001 From: Frank <91616163+softhack007@users.noreply.github.com> Date: Thu, 6 Jun 2024 14:39:56 +0200 Subject: [PATCH 4/4] fix compiler warning for matrixportal buildenv --- platformio.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/platformio.ini b/platformio.ini index 290f2ef3..5ada7d47 100644 --- a/platformio.ini +++ b/platformio.ini @@ -2487,6 +2487,7 @@ board_build.f_flash = 80000000L board_build.flash_mode = qio build_unflags = ${env:esp32S3_8MB_M.build_unflags} ;; use the same as "normal" S3 buildenv + -D ARDUINO_USB_CDC_ON_BOOT=1 ;; fix warning: "ARDUINO_USB_CDC_ON_BOOT" redefined; comment out for Serial debug build_flags = ${common.build_flags} ${esp32s3.build_flags} -Wno-misleading-indentation -Wno-format-truncation ${common_mm.build_flags_S} -D WLED_RELEASE_NAME=matrixportal_esp32s3