diff options
| author | mrfaptastic <12006953+mrfaptastic@users.noreply.github.com> | 2021-10-10 19:13:30 +0100 |
|---|---|---|
| committer | mrfaptastic <12006953+mrfaptastic@users.noreply.github.com> | 2021-10-10 19:13:30 +0100 |
| commit | 3752c67b8f61250526ee7d0d5a7ca32ee584a441 (patch) | |
| tree | 642a0f3ba615fe09d0a73e226fd211b8a7e5df78 | |
| parent | 5bf538e348600c42ef7fc74c88ccccf7f0f93fe6 (diff) | |
Update One_Eighth_1_8_ScanPanel.ino
| -rw-r--r-- | examples/One_Eighth_1_8_ScanPanel/One_Eighth_1_8_ScanPanel.ino | 20 |
1 files 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 |
