From 0a44e210beba1fe14df4d2fa9d77b217b6bb1077 Mon Sep 17 00:00:00 2001 From: mrfaptastic <12006953+mrfaptastic@users.noreply.github.com> Date: Fri, 3 Feb 2023 21:37:19 +0000 Subject: Update esp32_i2s_parallel_dma.hpp Makes ESP32_I2S_DEVICE adjustable via compile time define on ESP32 (original) --- src/platforms/esp32/esp32_i2s_parallel_dma.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/platforms/esp32/esp32_i2s_parallel_dma.hpp b/src/platforms/esp32/esp32_i2s_parallel_dma.hpp index 0fb68d2..dd6c1f3 100644 --- a/src/platforms/esp32/esp32_i2s_parallel_dma.hpp +++ b/src/platforms/esp32/esp32_i2s_parallel_dma.hpp @@ -49,7 +49,9 @@ Contributors: #define DMA_MAX (4096-4) -#define ESP32_I2S_DEVICE I2S_NUM_0 +#ifndef ESP32_I2S_DEVICE + #define ESP32_I2S_DEVICE I2S_NUM_0 +#endif // The type used for this SoC #define HUB75_DMA_DESCRIPTOR_T lldesc_t @@ -144,4 +146,4 @@ i2s_dev_t* getDev(); - }; \ No newline at end of file + }; -- cgit v1.3.1