Panel size selection

This commit is contained in:
Will Tatam
2024-01-13 21:04:38 +00:00
parent 260159a6ca
commit 7fa2fe3969
2 changed files with 15 additions and 3 deletions

View File

@@ -2187,4 +2187,4 @@ build_flags = ${common.build_flags} ${esp32s3.build_flags} -Wno-misleading-inden
; -D MIC_LOGGER
-D WLED_USE_PSRAM -DBOARD_HAS_PSRAM ; tells WLED that PSRAM shall be used
-D WLED_ENABLE_HUB75MATRIX -D NO_GFX ;-D SPIRAM_FRAMEBUFFER
-D DEFAULT_LED_TYPE=60
-D DEFAULT_LED_TYPE=103

View File

@@ -465,8 +465,20 @@ void BusNetwork::cleanup() {
BusHub75Matrix::BusHub75Matrix(BusConfig &bc) : Bus(bc.type, bc.start, bc.autoWhite) {
mxconfig.double_buff = false; // <------------- Turn on double buffer
mxconfig.mx_width = 64;
mxconfig.mx_height = 32;
switch(bc.type) {
case 101:
mxconfig.mx_width = 32;
mxconfig.mx_height = 32;
break;
case 102:
mxconfig.mx_width = 64;
mxconfig.mx_height = 32;
break;
case 103:
mxconfig.mx_width = 64;
mxconfig.mx_height = 64;
break;
}
// mxconfig.driver = HUB75_I2S_CFG::SHIFTREG;