esp32: 9 LED pins with audioreactive
this allows to use 9 (instead of 8) LED pins on esp32.
This commit is contained in:
@@ -1177,10 +1177,11 @@ class PolyBus {
|
|||||||
if (num > 3) return I_NONE;
|
if (num > 3) return I_NONE;
|
||||||
//if (num > 3) offset = num -4; // I2S not supported yet
|
//if (num > 3) offset = num -4; // I2S not supported yet
|
||||||
#else
|
#else
|
||||||
#ifndef WLEDMM_FASTPATH
|
|
||||||
// standard ESP32 has 8 RMT and 2 I2S channels
|
// standard ESP32 has 8 RMT and 2 I2S channels
|
||||||
|
#ifndef WLEDMM_FASTPATH
|
||||||
if (num > 9) return I_NONE;
|
if (num > 9) return I_NONE;
|
||||||
if (num > 7) offset = num -7;
|
if (num == 8) offset = 2; // first use I2S#1 (so #0 stays available for audio)
|
||||||
|
if (num == 9) offset = 1; // use I2S#0 as the last driver
|
||||||
#else
|
#else
|
||||||
// ESP32 "audio_fastpath" - 8 RMT and 1 I2S channels. RMT 5-8 have sending delays, so use I2S#1 before going for RMT 5-8
|
// ESP32 "audio_fastpath" - 8 RMT and 1 I2S channels. RMT 5-8 have sending delays, so use I2S#1 before going for RMT 5-8
|
||||||
if (num > 8) return I_NONE;
|
if (num > 8) return I_NONE;
|
||||||
|
|||||||
@@ -44,13 +44,8 @@
|
|||||||
#define WLED_MIN_VIRTUAL_BUSSES 4
|
#define WLED_MIN_VIRTUAL_BUSSES 4
|
||||||
#else
|
#else
|
||||||
#if defined(USERMOD_AUDIOREACTIVE) // requested by @softhack007 https://github.com/blazoncek/WLED/issues/33
|
#if defined(USERMOD_AUDIOREACTIVE) // requested by @softhack007 https://github.com/blazoncek/WLED/issues/33
|
||||||
#ifndef WLEDMM_FASTPATH
|
#define WLED_MAX_BUSSES 9 // WLEDMM I2S#1 is availeable for LEDs
|
||||||
#define WLED_MAX_BUSSES 8
|
|
||||||
#define WLED_MIN_VIRTUAL_BUSSES 2
|
|
||||||
#else
|
|
||||||
#define WLED_MAX_BUSSES 9 // WLEDMM I2S#1 is availeable for LEDs
|
|
||||||
#define WLED_MIN_VIRTUAL_BUSSES 1
|
#define WLED_MIN_VIRTUAL_BUSSES 1
|
||||||
#endif
|
|
||||||
#else
|
#else
|
||||||
#define WLED_MAX_BUSSES 10
|
#define WLED_MAX_BUSSES 10
|
||||||
#define WLED_MIN_VIRTUAL_BUSSES 0
|
#define WLED_MIN_VIRTUAL_BUSSES 0
|
||||||
|
|||||||
Reference in New Issue
Block a user