Update examples
Remove #DEFINE MATRIX_WIDTH and #DEFINE MATRIX_HEIGHT from examples as this does NOT work. Arduino compiles do not respect #defines in the .ino file within the library.
This commit is contained in:
parent
7a056791d4
commit
3cea4eb14f
2 changed files with 9 additions and 4 deletions
|
@ -16,8 +16,9 @@
|
|||
|
||||
/* -------------------------- Display Config Initialisation -------------------- */
|
||||
|
||||
#define MATRIX_WIDTH 64
|
||||
#define MATRIX_HEIGHT 32
|
||||
// MATRIX_WIDTH and MATRIX_HEIGHT *must* be changed in ESP32-HUB75-MatrixPanel-I2S-DMA.h
|
||||
// If you are using Platform IO (you should), pass MATRIX_WIDTH and MATRIX_HEIGHT as a compile time option.
|
||||
// Refer to: https://github.com/mrfaptastic/ESP32-HUB75-MatrixPanel-I2S-DMA/issues/48#issuecomment-749402379
|
||||
|
||||
/* -------------------------- Class Initialisation -------------------------- */
|
||||
#include <ESP32-HUB75-MatrixPanel-I2S-DMA.h>
|
||||
|
|
|
@ -17,8 +17,12 @@
|
|||
|
||||
|
||||
/* -------------------------- Display Config Initialisation -------------------- */
|
||||
#define MATRIX_WIDTH 128 // Overall matrix dimensions if laid out end-to-end.
|
||||
#define MATRIX_HEIGHT 32
|
||||
// MATRIX_WIDTH and MATRIX_HEIGHT *must* be changed in ESP32-HUB75-MatrixPanel-I2S-DMA.h
|
||||
// If you are using Platform IO (you should), pass MATRIX_WIDTH and MATRIX_HEIGHT as a compile time option.
|
||||
// Refer to: https://github.com/mrfaptastic/ESP32-HUB75-MatrixPanel-I2S-DMA/issues/48#issuecomment-749402379
|
||||
|
||||
//This will not work here -> #define MATRIX_WIDTH 128 // Overall matrix dimensions if laid out end-to-end.
|
||||
//This will not work here -> #define MATRIX_HEIGHT 32
|
||||
|
||||
#define PANEL_RES_X 64 // Number of pixels wide of each INDIVIDUAL panel module.
|
||||
#define PANEL_RES_Y 32 // Number of pixels tall of each INDIVIDUAL panel module.
|
||||
|
|
Loading…
Reference in a new issue