aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Brennig <mail@adrian-brennig.de>2020-03-28 10:47:27 +0100
committerAdrian Brennig <mail@adrian-brennig.de>2020-03-28 10:47:27 +0100
commitb297b3ca671979d6c9df4d7317141fdd1bbd0d22 (patch)
tree49ea74c50aa7803900a0d7d0f58ca107e80eac03
parentd8ace56d6bf131ee3a0c413df1f8f8f6309175a8 (diff)
define MATRIX_HEIGHT, MATRIX_WIDTH and MATRIX_ROWS_IN_PARALLEL only if not defined previously
-rw-r--r--ESP32-RGB64x32MatrixPanel-I2S-DMA.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/ESP32-RGB64x32MatrixPanel-I2S-DMA.h b/ESP32-RGB64x32MatrixPanel-I2S-DMA.h
index 0b78993..09c3287 100644
--- a/ESP32-RGB64x32MatrixPanel-I2S-DMA.h
+++ b/ESP32-RGB64x32MatrixPanel-I2S-DMA.h
@@ -77,10 +77,17 @@
* All of this is memory permitting of course (dependant on your sketch etc.) ...
*
*/
-
+#ifndef MATRIX_HEIGHT
#define MATRIX_HEIGHT 32 //64
+#endif
+
+#ifndef MATRIX_WIDTH
#define MATRIX_WIDTH 64
+#endif
+
+#ifndef MATRIX_ROWS_IN_PARALLEL
#define MATRIX_ROWS_IN_PARALLEL 2
+#endif
/***************************************************************************************/
/* ESP32 Pin Definition. You can change this, but best if you keep it as is... */