Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add HUB75 support #3777

Open
wants to merge 42 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
7ef84cf
Add HUB75 support
netmindz Feb 26, 2024
7603b5a
Remove getMaxPixels
netmindz Feb 26, 2024
755f91f
Remove referece to MM
netmindz Feb 26, 2024
2bd1e81
Default to mrfaptastic pinout
netmindz Feb 26, 2024
07a1588
Cleanup comments
netmindz Feb 26, 2024
74f77a7
Merge branch 'bus-config' into HUB75-AC
netmindz Sep 7, 2024
ecd46f2
Swap to new way to have dynamic LED types list
netmindz Sep 7, 2024
aae9446
Add "old-style" changes to settings_led for hub75
netmindz Sep 7, 2024
e94943d
Assign proper type ID for Hub75
netmindz Sep 8, 2024
e066b50
hub75 - remove hard coded panel sizes
netmindz Sep 8, 2024
78fb9dc
Cleanup mxconfig.chain_length
netmindz Sep 8, 2024
e185f2e
Hub75 compact pin defintion
netmindz Sep 8, 2024
f96acd6
Hub75 - Tweaks to webui
netmindz Sep 8, 2024
e0d78d5
Porting latest BusHub75Matrix from MoonModules - Mostly authored by F…
netmindz Sep 8, 2024
21c582e
Porting latest BusHub75Matrix from MoonModules - Mostly authored by F…
netmindz Sep 8, 2024
ad402ad
Hub75 - Misc fixes - WiP
netmindz Sep 8, 2024
23e578b
Swap BusHub75Matrix to use allocateMultiplePins
netmindz Sep 22, 2024
382d7e8
Remove stray whitespace from xml.cpp
netmindz Sep 22, 2024
fc07397
cleanup hub75 comments
netmindz Sep 22, 2024
713cbb8
Merge branch '0_15' into HUB75-AC
netmindz Sep 22, 2024
b7aba15
Always copy all the pin data
netmindz Sep 22, 2024
e111b6e
Hub75 - PIN_COUNT const
netmindz Sep 22, 2024
8632a0a
Hub75 - use actual panel config values
netmindz Sep 22, 2024
0a8d86c
Always copy all the pin data
netmindz Sep 22, 2024
9a9c65a
Whitespace
netmindz Sep 22, 2024
fbeead0
Exclude hub75 from pin validdation for xml.cpp
netmindz Sep 22, 2024
e74eb7d
Move examples envs for hub75
netmindz Sep 22, 2024
6ce6b95
Merge branch '0_15' into HUB75-AC
netmindz Oct 4, 2024
5b86c67
Error for ESP8266 and hub75
netmindz Oct 4, 2024
4276671
HUB75 - Remove hot from show
netmindz Oct 4, 2024
f7b8828
HUB75 - code formatting
netmindz Oct 4, 2024
c356846
HUB75 - fix hasRGB and missing override
netmindz Oct 4, 2024
6f03854
HUB75 - add comments to example env
netmindz Oct 4, 2024
f1b9952
HUB75 - Support BGR color order
netmindz Oct 4, 2024
de8a366
HUB75 - lower color depth for larger panels
netmindz Oct 10, 2024
d320c46
HUB75 - use CHAIN_BOTTOM_LEFT_UP when panel width count and panel hei…
netmindz Nov 14, 2024
f447df9
Merge branch 'main' into HUB75-AC
Jan 6, 2025
1c146ba
Merge branch 'main' into HUB75-AC
netmindz Jan 9, 2025
d2f8f99
hub75 - post main merge fixes
netmindz Jan 9, 2025
e6b1454
Merge branch 'main' into HUB75-AC
netmindz Jan 26, 2025
c203ef8
Merge branch 'main' into HUB75-AC
netmindz Jan 26, 2025
f51783f
Updates after pulling in latest main
netmindz Jan 26, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions platformio_override.sample.ini
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,48 @@ lib_deps =
${esp32.lib_deps}
TFT_eSPI @ 2.5.33 ;; this is the last version that compiles with the WLED default framework - newer versions require platform = espressif32 @ ^6.3.2


[env:esp32dev_hub75]
board = esp32dev
upload_speed = 921600
platform = ${esp32_idf_V4.platform}
extends = esp32dev_V4
build_flags = ${common.build_flags}
-D WLED_RELEASE_NAME=\"ESP32_hub75\"
-D WLED_ENABLE_HUB75MATRIX -D NO_GFX -D NO_CIE1931
; -D ESP32_FORUM_PINOUT ;; enable for SmartMatrix default pins
; -D WLED_DEBUG
lib_deps = ${esp32_idf_V4.lib_deps}
https://github.com/mrfaptastic/ESP32-HUB75-MatrixPanel-DMA.git#3.0.11
board_build.partitions = ${esp32.default_partitions}
board_build.flash_mode = dio


[env:adafruit_matrixportal_esp32s3]
; ESP32-S3 processor, 8 MB flash, 2 MB of PSRAM, dedicated driver pins for HUB75
board = lolin_s3_mini
platform = ${esp32s3.platform}
platform_packages = ${esp32s3.platform_packages}
upload_speed = 921600
build_unflags = ${common.build_unflags}
build_flags = ${common.build_flags} ${esp32s3.build_flags} -D WLED_RELEASE_NAME=ESP32-S3_4M_qspi
-DARDUINO_USB_CDC_ON_BOOT=1 -DARDUINO_USB_MODE=1 ;; for boards with USB-OTG connector only (USBCDC or "TinyUSB")
-DBOARD_HAS_PSRAM
-DLOLIN_WIFI_FIX ; seems to work much better with this
-D WLED_WATCHDOG_TIMEOUT=0
${esp32.AR_build_flags}
-D WLED_ENABLE_HUB75MATRIX -D NO_GFX -D NO_CIE1931
-D S3_LCD_DIV_NUM=20 ;; Attempt to fix wifi performance issue when panel active with S3 chips
-D ARDUINO_ADAFRUIT_MATRIXPORTAL_ESP32S3

lib_deps = ${esp32s3.lib_deps}
${esp32.AR_lib_deps}
https://github.com/mrfaptastic/ESP32-HUB75-MatrixPanel-DMA.git#aa28e2a ;; S3_LCD_DIV_NUM fix

board_build.partitions = ${esp32.default_partitions}
board_build.f_flash = 80000000L
board_build.flash_mode = qio
monitor_filters = esp32_exception_decoder
# ------------------------------------------------------------------------------
# Usermod examples
# ------------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion usermods/rgb-rotary-encoder/rgb-rotary-encoder.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class RgbRotaryEncoderUsermod : public Usermod

void initLedBus()
{
byte _pins[5] = {(byte)ledIo, 255, 255, 255, 255};
byte _pins[OUTPUT_MAX_PINS] = {(byte)ledIo, 255, 255, 255, 255};
BusConfig busCfg = BusConfig(TYPE_WS2812_RGB, _pins, 0, numLeds, COL_ORDER_GRB, false, 0);

ledBus = new BusDigital(busCfg, WLED_MAX_BUSSES - 1);
Expand Down
Loading
Loading