Skip to content

Commit df7257d

Browse files
author
Louis Beaudoin
committed
MultiRowRefreshMapping example - Improve instructions
1 parent 0434d57 commit df7257d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

examples/MultiRowRefreshMapping/MultiRowRefreshMapping.ino

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,8 @@
4444
* {6, 40, 8},
4545
* {6, 56, 8},
4646
* {0, 0, 0} // last entry is all zeros
47-
* Add this map and panel definition to SmartMatrix Library
4847
*
4948
* How to add a map and new panel config to SmartMatrix Library
50-
* - Follow the format in PanelMaps.cpp, and add your map with a unique name
5149
* - Open SmartMatrixCommonHub75.h, add a new definition at the top for your panel. Give it the format
5250
* - SM_PANELTYPE_NUMROW_NUMCOL_MODNSCAN filling in NUMROW, NUMCOL, MODNSCAN
5351
* - Add entries for your new panelType to the CONVERT_PANELTYPE_TO_... Definitions
@@ -56,8 +54,9 @@
5654
* - CONVERT_PANELTYPE_TO_MATRIXSCANMOD - This is just the MOD_N_SCAN value for your panel
5755
* - CONVERT_PANELTYPE_TO_MATRIXPANELWIDTH - What's the width of your panel? (This doesn't have to be exact for non-multi-row-scan panels, 32 is used by default)
5856
* - CONVERT_PANELTYPE_TO_MATRIXPHYSICALROWSPERREFRESHROW - how many physical rows get lit up with one address? (how many rows are in the diagram you made above?)
59-
* - Open PanelMaps.h
60-
* - Add new case for your new panelType, returning your new panelMap
57+
* - Open PanelMaps.cpp
58+
* - Add your map with a unique name
59+
* - Add new case for your new panelType to getMultiRowRefreshPanelMap(), returning your new panelMap
6160
* - Now test your new panelType with the MODE_MAP_TESTING mode of this sketch
6261
*
6362
* Testing Example 32x16 /2 Panel:
@@ -95,6 +94,9 @@ const uint16_t kMatrixWidth = 128; // must be multiple of 8
9594
const uint16_t kMatrixHeight = 4;
9695
const uint8_t kPanelType = SM_PANELTYPE_HUB75_4ROW_MOD2SCAN; // Use this to reverse engineer mapping for a MOD2 panel
9796
//const uint8_t kPanelType = SM_PANELTYPE_HUB75_8ROW_MOD4SCAN; // Use this to reverse engineer mapping for a MOD4 panel
97+
//const uint8_t kPanelType = SM_PANELTYPE_HUB75_16ROW_MOD8SCAN; // Use this to reverse engineer mapping for a MOD8 panel
98+
//const uint8_t kPanelType = SM_PANELTYPE_HUB75_32ROW_MOD16SCAN; // Use this to reverse engineer mapping for a MOD16 panel
99+
//const uint8_t kPanelType = SM_PANELTYPE_HUB75_64ROW_MOD32SCAN; // Use this to reverse engineer mapping for a MOD32 panel
98100
#endif
99101

100102
#if (SKETCH_MODE == MODE_MAP_TESTING)

0 commit comments

Comments
 (0)