Compare commits

...

3 Commits

Author SHA1 Message Date
Frank
11a667879d fix typo in comment 2023-09-21 23:40:21 +02:00
Frank
ad863dd55a change order of I2S drivers
use I2S#1 before utilizing I2S#1
2023-09-21 23:28:46 +02:00
Frank
32c4045488 Allow 9 LED pins with audioreadctive
One additional LED pin for esp32 audioreactive :-)
I2S#1 can still be used for NPB while audio is running on I2S#0.
2023-09-21 19:26:09 +02:00
2 changed files with 4 additions and 3 deletions

View File

@ -1190,7 +1190,8 @@ class PolyBus {
#else
// standard ESP32 has 8 RMT and 2 I2S channels
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
#endif
switch (busType) {
case TYPE_WS2812_1CH_X3:

View File

@ -44,8 +44,8 @@
#define WLED_MIN_VIRTUAL_BUSSES 4
#else
#if defined(USERMOD_AUDIOREACTIVE) // requested by @softhack007 https://github.com/blazoncek/WLED/issues/33
#define WLED_MAX_BUSSES 8
#define WLED_MIN_VIRTUAL_BUSSES 2
#define WLED_MAX_BUSSES 9
#define WLED_MIN_VIRTUAL_BUSSES 1
#else
#define WLED_MAX_BUSSES 10
#define WLED_MIN_VIRTUAL_BUSSES 0