|
44 | 44 | * {6, 40, 8},
|
45 | 45 | * {6, 56, 8},
|
46 | 46 | * {0, 0, 0} // last entry is all zeros
|
47 |
| - * Add this map and panel definition to SmartMatrix Library |
48 | 47 | *
|
49 | 48 | * 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 |
51 | 49 | * - Open SmartMatrixCommonHub75.h, add a new definition at the top for your panel. Give it the format
|
52 | 50 | * - SM_PANELTYPE_NUMROW_NUMCOL_MODNSCAN filling in NUMROW, NUMCOL, MODNSCAN
|
53 | 51 | * - Add entries for your new panelType to the CONVERT_PANELTYPE_TO_... Definitions
|
|
56 | 54 | * - CONVERT_PANELTYPE_TO_MATRIXSCANMOD - This is just the MOD_N_SCAN value for your panel
|
57 | 55 | * - 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)
|
58 | 56 | * - 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 |
61 | 60 | * - Now test your new panelType with the MODE_MAP_TESTING mode of this sketch
|
62 | 61 | *
|
63 | 62 | * Testing Example 32x16 /2 Panel:
|
@@ -95,6 +94,9 @@ const uint16_t kMatrixWidth = 128; // must be multiple of 8
|
95 | 94 | const uint16_t kMatrixHeight = 4;
|
96 | 95 | const uint8_t kPanelType = SM_PANELTYPE_HUB75_4ROW_MOD2SCAN; // Use this to reverse engineer mapping for a MOD2 panel
|
97 | 96 | //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 |
98 | 100 | #endif
|
99 | 101 |
|
100 | 102 | #if (SKETCH_MODE == MODE_MAP_TESTING)
|
|
0 commit comments