From 3752c67b8f61250526ee7d0d5a7ca32ee584a441 Mon Sep 17 00:00:00 2001 From: mrfaptastic <12006953+mrfaptastic@users.noreply.github.com> Date: Sun, 10 Oct 2021 19:13:30 +0100 Subject: [PATCH] Update One_Eighth_1_8_ScanPanel.ino --- .../One_Eighth_1_8_ScanPanel.ino | 20 +++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/examples/One_Eighth_1_8_ScanPanel/One_Eighth_1_8_ScanPanel.ino b/examples/One_Eighth_1_8_ScanPanel/One_Eighth_1_8_ScanPanel.ino index 9115388..e785cdd 100644 --- a/examples/One_Eighth_1_8_ScanPanel/One_Eighth_1_8_ScanPanel.ino +++ b/examples/One_Eighth_1_8_ScanPanel/One_Eighth_1_8_ScanPanel.ino @@ -77,12 +77,20 @@ Please refer to the '2_PatternPlasma.ino' example for detailed example of how to use the MatrixPanel_I2S_DMA configuration */ - - HUB75_I2S_CFG mxconfig( - PANEL_RES_X*2, // DO NOT CHANGE THIS - PANEL_RES_Y/2, // DO NOT CHANGE THIS - PANEL_CHAIN // DO NOT CHANGE THIS - ); + + HUB75_I2S_CFG::i2s_pins _pins = { + R1_PIN, G1_PIN, B1_PIN, R2_PIN, G2_PIN, B2_PIN, + A_PIN, B_PIN, C_PIN, D_PIN, E_PIN, + LAT_PIN, OE_PIN, CLK_PIN + }; + + + HUB75_I2S_CFG mxconfig( + PANEL_RES_X*2, // DO NOT CHANGE THIS + PANEL_RES_Y/2, // DO NOT CHANGE THIS + PANEL_CHAIN // DO NOT CHANGE THIS + //,_pins // Uncomment to enable custom pins + ); //mxconfig.driver = HUB75_I2S_CFG::FM6126A; // in case that we use panels based on FM6126A chip, we can set it here before creating MatrixPanel_I2S_DMA object