From b297b3ca671979d6c9df4d7317141fdd1bbd0d22 Mon Sep 17 00:00:00 2001 From: Adrian Brennig Date: Sat, 28 Mar 2020 10:47:27 +0100 Subject: [PATCH] define MATRIX_HEIGHT, MATRIX_WIDTH and MATRIX_ROWS_IN_PARALLEL only if not defined previously --- ESP32-RGB64x32MatrixPanel-I2S-DMA.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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... */