From b38e840a618f8af41e52cefbe91b29da53c75e9d Mon Sep 17 00:00:00 2001 From: Alexey Ignatov Date: Sun, 7 Jul 2024 02:16:28 +0300 Subject: [PATCH] Allow 2D panel to be larger than 256px in both dimensions --- wled00/FX.h | 4 ++-- wled00/const.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wled00/FX.h b/wled00/FX.h index 167ed8f0f0..e76a140a4b 100644 --- a/wled00/FX.h +++ b/wled00/FX.h @@ -855,8 +855,8 @@ class WS2812FX { // 96 bytes typedef struct panel_t { uint16_t xOffset; // x offset relative to the top left of matrix in LEDs uint16_t yOffset; // y offset relative to the top left of matrix in LEDs - uint8_t width; // width of the panel - uint8_t height; // height of the panel + uint16_t width; // width of the panel + uint16_t height; // height of the panel union { uint8_t options; struct { diff --git a/wled00/const.h b/wled00/const.h index 388b64c820..db2f87b4cc 100644 --- a/wled00/const.h +++ b/wled00/const.h @@ -401,7 +401,7 @@ #endif #ifndef MAX_LEDS_PER_BUS -#define MAX_LEDS_PER_BUS 2048 // may not be enough for fast LEDs (i.e. APA102) +#define MAX_LEDS_PER_BUS 4096 // may not be enough for fast LEDs (i.e. APA102) #endif // string temp buffer (now stored in stack locally)