define MATRIX_HEIGHT, MATRIX_WIDTH and MATRIX_ROWS_IN_PARALLEL only if not defined previously

This commit is contained in:
Adrian Brennig 2020-03-28 10:47:27 +01:00
parent d8ace56d6b
commit b297b3ca67

View file

@ -77,10 +77,17 @@
* All of this is memory permitting of course (dependant on your sketch etc.) ... * All of this is memory permitting of course (dependant on your sketch etc.) ...
* *
*/ */
#ifndef MATRIX_HEIGHT
#define MATRIX_HEIGHT 32 //64 #define MATRIX_HEIGHT 32 //64
#endif
#ifndef MATRIX_WIDTH
#define MATRIX_WIDTH 64 #define MATRIX_WIDTH 64
#endif
#ifndef MATRIX_ROWS_IN_PARALLEL
#define MATRIX_ROWS_IN_PARALLEL 2 #define MATRIX_ROWS_IN_PARALLEL 2
#endif
/***************************************************************************************/ /***************************************************************************************/
/* ESP32 Pin Definition. You can change this, but best if you keep it as is... */ /* ESP32 Pin Definition. You can change this, but best if you keep it as is... */