Skip to content

Commit 5552c05

Browse files
committed
Improvements & fixes for HUB75
- added proper config parameters to allow multiple panels - added config checks - fixed crashes on S3 - changed constant variables to constexpr - added "wled.h" to bus_manager.cpp and removed local function prototypes (needed for buffer allocations) - speed optimisations: yields about 10% higher FPS - proper brightness handling - updated platformio_override.sample.ini - some code cleanup
1 parent b60313e commit 5552c05

File tree

5 files changed

+145
-136
lines changed

5 files changed

+145
-136
lines changed

platformio_override.sample.ini

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,7 @@ lib_deps = ${env:esp32dev.lib_deps}
529529
# ------------------------------------------------------------------------------
530530
# Hub75 examples
531531
# ------------------------------------------------------------------------------
532+
# Note: some panels may experience ghosting with default full brightness. use -D WLED_HUB75_MAX_BRIGHTNESS=239 or lower to fix it.
532533

533534
[env:esp32dev_hub75]
534535
board = esp32dev
@@ -561,15 +562,18 @@ build_flags = ${common.build_flags}
561562

562563
[env:adafruit_matrixportal_esp32s3]
563564
; ESP32-S3 processor, 8 MB flash, 2 MB of PSRAM, dedicated driver pins for HUB75
565+
; If board file is missing, copy it manually into the boards folder: .platformio\platforms\espressif32@src-xxxsomehashnumberxxx\boards
566+
; https://github.com/platformio/platform-espressif32/blob/master/boards/adafruit_matrixportal_esp32s3.json
564567
board = adafruit_matrixportal_esp32s3
565568
platform = ${esp32s3.platform}
566569
platform_packages =
567570
upload_speed = 921600
568571
build_unflags = ${common.build_unflags}
569572
build_flags = ${common.build_flags} ${esp32s3.build_flags} -D WLED_RELEASE_NAME=\"ESP32-S3_4M_qspi\"
570-
-DARDUINO_USB_CDC_ON_BOOT=1 -DARDUINO_USB_MODE=1 ;; for boards with USB-OTG connector only (USBCDC or "TinyUSB")
573+
-DARDUINO_USB_CDC_ON_BOOT=1 ;; for boards with USB-OTG connector only (USBCDC or "TinyUSB")
574+
-DARDUINO_USB_MODE=1 ; if board does not boot after reset/powerup, try setting this to 0 (or open serial monitor)
571575
-DBOARD_HAS_PSRAM
572-
-DLOLIN_WIFI_FIX ; seems to work much better with this
576+
-DLOLIN_WIFI_FIX ; seems to work much better with this (sets lower TX power)
573577
-D WLED_WATCHDOG_TIMEOUT=0
574578
-D WLED_ENABLE_HUB75MATRIX -D NO_GFX
575579
-D S3_LCD_DIV_NUM=20 ;; Attempt to fix wifi performance issue when panel active with S3 chips
@@ -595,7 +599,7 @@ build_unflags = ${common.build_unflags}
595599
build_flags = ${common.build_flags} ${esp32s3.build_flags} -D WLED_RELEASE_NAME=\"esp32S3_16MB_PSRAM_HUB75\"
596600
-DARDUINO_USB_CDC_ON_BOOT=1 -DARDUINO_USB_MODE=1 ;; for boards with USB-OTG connector only (USBCDC or "TinyUSB")
597601
-DBOARD_HAS_PSRAM
598-
-DLOLIN_WIFI_FIX ; seems to work much better with this
602+
-DLOLIN_WIFI_FIX ; seems to work much better with this (sets lower TX power)
599603
-D WLED_WATCHDOG_TIMEOUT=0
600604
-D WLED_ENABLE_HUB75MATRIX -D NO_GFX
601605
-D S3_LCD_DIV_NUM=20 ;; Attempt to fix wifi performance issue when panel active with S3 chips

0 commit comments

Comments
 (0)