From 6092705cc45c59cf724c70040a883ce2188bb3c5 Mon Sep 17 00:00:00 2001 From: Frank <91616163+softhack007@users.noreply.github.com> Date: Fri, 1 Nov 2024 13:30:49 +0100 Subject: [PATCH] HUB75: reduced panel size limits for HD-WF2 --- wled00/bus_manager.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/wled00/bus_manager.cpp b/wled00/bus_manager.cpp index 4fb5abaa0f..68066a3614 100644 --- a/wled00/bus_manager.cpp +++ b/wled00/bus_manager.cpp @@ -546,11 +546,16 @@ uint8_t BusHub75Matrix::instanceCount = 0; #define MAX_PIXELS_6BIT (192 * 64) #define MAX_PIXELS_4BIT (256 * 64) #endif -#elif defined(CONFIG_IDF_TARGET_ESP32S3) - // standard esp32-S3 +#elif defined(CONFIG_IDF_TARGET_ESP32S3) && defined(BOARD_HAS_PSRAM) + // standard esp32-S3 with quad PSRAM #define MAX_PIXELS_8BIT ( 96 * 64) #define MAX_PIXELS_6BIT (128 * 64) #define MAX_PIXELS_4BIT (160 * 64) +#elif defined(CONFIG_IDF_TARGET_ESP32S3) + // HD-WF2 is an esp32-S3 without PSRAM - use same limits as classic esp32 + #define MAX_PIXELS_8BIT ( 64 * 64) + #define MAX_PIXELS_6BIT ( 96 * 64) + #define MAX_PIXELS_4BIT (128 * 64) #elif defined(CONFIG_IDF_TARGET_ESP32S2) // esp32-S2 only has 320KB RAM #define MAX_PIXELS_8BIT ( 48 * 48)