Skip to content

Commit db1db33

Browse files
committed
HUB75: bugfix for 4-scan (virtual) panels chain
module cols parameter must be chain_length
1 parent 06fc1eb commit db1db33

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

wled00/bus_manager.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ BusHub75Matrix::BusHub75Matrix(BusConfig &bc) : Bus(bc.type, bc.start, bc.autoWh
636636
mxconfig.mx_width = 64;
637637
mxconfig.mx_height = 64;
638638
break;
639-
case 104: // untested
639+
case 104:
640640
mxconfig.mx_width = 128;
641641
mxconfig.mx_height = 64;
642642
break;
@@ -952,25 +952,25 @@ BusHub75Matrix::BusHub75Matrix(BusConfig &bc) : Bus(bc.type, bc.start, bc.autoWh
952952
switch(bc.type) {
953953
case 105:
954954
USER_PRINTLN("MatrixPanel_I2S_DMA FOUR_SCAN_32PX_HIGH - 32x32");
955-
if (!fourScanPanel) fourScanPanel = new VirtualMatrixPanel((*display), 1, 1, 32, 32);
955+
if (!fourScanPanel) fourScanPanel = new VirtualMatrixPanel((*display), 1, mxconfig.chain_length, 32, 32);
956956
fourScanPanel->setPhysicalPanelScanRate(FOUR_SCAN_32PX_HIGH);
957957
fourScanPanel->setRotation(0);
958958
break;
959959
case 106:
960960
USER_PRINTLN("MatrixPanel_I2S_DMA FOUR_SCAN_32PX_HIGH - 64x32");
961-
if (!fourScanPanel) fourScanPanel = new VirtualMatrixPanel((*display), 1, 1, 64, 32);
961+
if (!fourScanPanel) fourScanPanel = new VirtualMatrixPanel((*display), 1, mxconfig.chain_length, 64, 32);
962962
fourScanPanel->setPhysicalPanelScanRate(FOUR_SCAN_32PX_HIGH);
963963
fourScanPanel->setRotation(0);
964964
break;
965965
case 107:
966966
USER_PRINTLN("MatrixPanel_I2S_DMA FOUR_SCAN_64PX_HIGH");
967-
if (!fourScanPanel) fourScanPanel = new VirtualMatrixPanel((*display), 1, 1, 64, 64);
967+
if (!fourScanPanel) fourScanPanel = new VirtualMatrixPanel((*display), 1, mxconfig.chain_length, 64, 64);
968968
fourScanPanel->setPhysicalPanelScanRate(FOUR_SCAN_64PX_HIGH);
969969
fourScanPanel->setRotation(0);
970970
break;
971971
case 108: // untested
972972
USER_PRINTLN("MatrixPanel_I2S_DMA 128x64 FOUR_SCAN_64PX_HIGH");
973-
if (!fourScanPanel) fourScanPanel = new VirtualMatrixPanel((*display), 1, 1, 128, 64);
973+
if (!fourScanPanel) fourScanPanel = new VirtualMatrixPanel((*display), 1, mxconfig.chain_length, 128, 64);
974974
fourScanPanel->setPhysicalPanelScanRate(FOUR_SCAN_64PX_HIGH);
975975
fourScanPanel->setRotation(0);
976976
break;

0 commit comments

Comments
 (0)