diff --git a/platformio.ini b/platformio.ini index 0e303f8d..5ada7d47 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] @@ -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 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) 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(";"));