You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/MultiRowRefreshMapping/MultiRowRefreshMapping.ino
+15-5Lines changed: 15 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -45,6 +45,13 @@
45
45
* {6, 56, 8},
46
46
* {0, 0, 0} // last entry is all zeros
47
47
*
48
+
* Panels Using Alt Addressing:
49
+
* If you see a column of pixels (2 or 4) lighting up, instead of a single pixel, your panel likely uses an alt addressing mode (where instead
50
+
* of the address being output binary encoded over the address lines, each address line corresponds to a row, and you ground a single
51
+
* address line to select a row). This has only been seen on /2 and /4 panels. Choose a panel type with alt addressing,
52
+
* e.g. SMARTMATRIX_HUB75_4ROW_MOD2SCAN_ALT_ADDX for reverse engineering, and you should see only one pixel light up instead of a column at a time.
53
+
* If your panel uses alt addressing, make sure you follow the step for PANEL_USES_ALT_ADDRESSING_MODE when you add a new map.
54
+
*
48
55
* How to add a map and new panel config to SmartMatrix Library
49
56
* - Open SmartMatrixCommonHub75.h, add a new definition at the top for your panel. Give it the format
50
57
* - SM_PANELTYPE_NUMROW_NUMCOL_MODNSCAN filling in NUMROW, NUMCOL, MODNSCAN
@@ -53,6 +60,7 @@
53
60
* - CONVERT_PANELTYPE_TO_MATRIXROWPAIROFFSET - HUB75 panels fill two rows in parallel, what's the spacing? (normally half of panel height)
54
61
* - CONVERT_PANELTYPE_TO_MATRIXSCANMOD - This is just the MOD_N_SCAN value for your panel
55
62
* - 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)
63
+
* - If your panel uses alt addressing (see above), add your panel to PANEL_USES_ALT_ADDRESSING_MODE, otherwise leave it alone
56
64
* - Open PanelMaps.cpp
57
65
* - Add your map with a unique name
58
66
* - Add new case for your new panelType to getMultiRowRefreshPanelMap(), returning your new panelMap
@@ -91,11 +99,13 @@
91
99
#if (SKETCH_MODE == MODE_MAP_REVERSE_ENGINEERING)
92
100
constuint16_tkMatrixWidth = 128; // must be multiple of 8
93
101
constuint16_tkMatrixHeight = 4;
94
-
constuint8_tkPanelType = SM_PANELTYPE_HUB75_4ROW_MOD2SCAN; // Use this to reverse engineer mapping for a MOD2 panel
95
-
//const uint8_t kPanelType = SM_PANELTYPE_HUB75_8ROW_MOD4SCAN; // Use this to reverse engineer mapping for a MOD4 panel
96
-
//const uint8_t kPanelType = SM_PANELTYPE_HUB75_16ROW_MOD8SCAN; // Use this to reverse engineer mapping for a MOD8 panel
97
-
//const uint8_t kPanelType = SM_PANELTYPE_HUB75_32ROW_MOD16SCAN; // Use this to reverse engineer mapping for a MOD16 panel
98
-
//const uint8_t kPanelType = SM_PANELTYPE_HUB75_64ROW_MOD32SCAN; // Use this to reverse engineer mapping for a MOD32 panel
102
+
//const uint8_t kPanelType = SM_PANELTYPE_HUB75_4ROW_MOD2SCAN; // Use this to reverse engineer mapping for a MOD2 panel
103
+
//const uint8_t kPanelType = SM_PANELTYPE_HUB75_8ROW_MOD4SCAN; // Use this to reverse engineer mapping for a MOD4 panel
104
+
//const uint8_t kPanelType = SM_PANELTYPE_HUB75_16ROW_MOD8SCAN; // Use this to reverse engineer mapping for a MOD8 panel
105
+
//const uint8_t kPanelType = SM_PANELTYPE_HUB75_32ROW_MOD16SCAN; // Use this to reverse engineer mapping for a MOD16 panel
106
+
//const uint8_t kPanelType = SM_PANELTYPE_HUB75_64ROW_MOD32SCAN; // Use this to reverse engineer mapping for a MOD32 panel
107
+
//const uint8_t kPanelType = SM_PANELTYPE_HUB75_4ROW_MOD2SCAN_ALT_ADDX; // Use this to reverse engineer mapping for a MOD2 panel that uses alt addressing
108
+
//const uint8_t kPanelType = SM_PANELTYPE_HUB75_8ROW_MOD4SCAN_ALT_ADDX; // Use this to reverse engineer mapping for a MOD4 panel that uses alt addressing
// Some panels (usually MOD2/MOD4 panels) use an alt address mode and ground one address line per row, instead of using all the bits. Identify those panels here. Thanks to Eric: https://community.pixelmatix.com/t/mapping-assistance-32x16-p10/889/23
0 commit comments