Commit Graph

3174 Commits

Author SHA1 Message Date
Ewowi
37ee28fa0a Merge remote-tracking branch 'origin/dev' into mdev 2022-09-21 18:26:20 +02:00
Blaz Kristan
fc0dc4472b Merge branch 'esp32-s2' into dev 2022-09-20 21:52:40 +02:00
Blaz Kristan
7824f9ee63 Remove sync preset loading (ugly core check)
WS buffer check for ESP32-S2
Delay for Serial init on CDC USB
2022-09-20 21:17:44 +02:00
Frank
fb00bef05f AR - necessary constants for 166Khz sampling rate
16kHz might be a good compromise on small MCU's:
- GEQ will show frequencies up to ~6Khz
- FFT process may use up to 32millis (-> 100% CPU load). Try to stay below <60% so FreeRTOS can schedule all tasks properly.

- more CPU time is left for other WLED, so it maintains LED FPS and stays responsive on web UI.
2022-09-20 18:29:27 +02:00
Ewowi
475a7379ee Merge branch 'json-mapping' into mdev 2022-09-20 11:21:58 +02:00
Ewowi
29079ee2fe Merge branch 'weather-usermod' into mdev 2022-09-20 11:21:42 +02:00
Ewowi
7944a5696c Merge branch 'custom-effects' into mdev 2022-09-20 11:21:32 +02:00
Ewowi
96fc330b26 Merge branch 'small-changes' into mdev 2022-09-20 11:21:09 +02:00
Ewowi
e10f8c8681 Move from DynamicJsonDocument to PSRAMDynamicJsonDocument 2022-09-20 11:18:20 +02:00
Ewowi
937d628d0a Move from DynamicJsonDocument to PSRAMDynamicJsonDocument 2022-09-20 11:11:59 +02:00
Ewowi
6e45515527 Move from DynamicJsonDocument to PSRAMDynamicJsonDocument 2022-09-20 11:07:55 +02:00
Ewowi
3455da98c4 Merge remote-tracking branch 'origin/dev' into custom-effects 2022-09-20 11:02:59 +02:00
Ewowi
5aa7b34b05 Add total heap and total psram into Info tab 2022-09-20 10:58:59 +02:00
Ewowi
4342cad1cd Merge remote-tracking branch 'origin/dev' into small-changes 2022-09-20 10:53:51 +02:00
Ewowi
9dd8a59572 Merge remote-tracking branch 'origin/dev' into mdev 2022-09-19 22:55:35 +02:00
Frank
d7bc6b1be7 AR: optimization for small MCUs, part2
Only run FFT when the result will be used.
Please note that this also means that `FFTTime` shown in Info is only meaningful when there is sound input and not silence.

--> To get exact FFT times, the optimization can be disabled by compiling with `-D SR_DEBUG`
2022-09-19 14:09:45 +02:00
Frank
79776ae8bc AR: optimization for smaller MCUs
- this reduces "lagging behind" of I2S sampling on smaller MCU's. The maximum time for FFT is now ~20 millis.
- small improvement for SR_DEBUG
2022-09-19 13:38:52 +02:00
Frank
90b3f009af AR: small improvement for ADC analog mics
ensure that ADC parameters are properly configured.
2022-09-19 13:30:13 +02:00
Frank
6f8deb83e3 some relaxations for S2 and C3
- AR: changed "error" into warning.
- reducing max_busses (for AR) not needed on S2
2022-09-17 22:00:33 +02:00
Frank
da02a68e60 allocatePin() debug message when Pin is not OK.
This debug message should help to understand GPIO config problems.
2022-09-17 20:42:34 +02:00
Frank
85fc8710dd mics that need MCLK should work 2022-09-17 20:39:23 +02:00
Frank
a01f3e4efd presets: disable "crude hack" on single core
This code in handlepresets() does not make much sense.
Especially it does not make any sense on single core MCU's.
2022-09-17 13:41:27 +02:00
Blaz Kristan
cce54f3bb7 Loading cfg.json without wsec.json
Bugfix for BudOnOff.
2022-09-16 23:19:53 +02:00
Frank
a766ddbebc make I2S microphones work with buggy IDF4.4.x
I2S microphones were not working any more in with the newest framework - only delivers silence.
Ther reason is stupid bug in espressif I2S "compatibility" driver: RIGHT and LEFT channel are swapped, so when only asking for LEFT, we get silence from RIGHT.

Workaround: simply change LEFT to RIGHT, until the problem is fixed in ESP-IDF --> Fix tested on "classic ESP32", but still need to check behavior on -S3.
Code compiles also on -S3, -S2, and -C3.

smaller changes:
- a few changes to use new APIs (MCLK, rouing and sample resolution)
- a few additional debug messages
- put correct value into _pinConfig.mck_io_num
2022-09-16 16:58:04 +02:00
Frank
01acb08c83 minor fix (typo) 2022-09-16 16:38:24 +02:00
Frank
023c259034 show version of arduino-esp32 in WLED_DEBUG 2022-09-16 16:37:07 +02:00
Blaz Kristan
dfe4d70198 Merge branch 'audioreactive-prototype' into esp32-s2 2022-09-16 15:38:44 +02:00
Blaz Kristan
4d939cb778 Merge branch '0_14' of https://github.com/aircoookie/WLED into dev 2022-09-16 15:34:17 +02:00
Blaž Kristan
660a809ec8 Missing isActive() 2022-09-16 14:07:44 +02:00
Blaž Kristan
26825ed60f Missing isActive() 2022-09-16 14:07:04 +02:00
Ewowi
4d4819fba5 Merge branch 'small-changes' into mdev 2022-09-16 13:53:08 +02:00
Ewowi
f8726d45f0 Platformio: increase WLED_MAX_USERMODS for USERMOD_GAMES 2022-09-16 13:52:51 +02:00
Ewowi
14ded6d867 Merge branch 'games-usermod' into mdev 2022-09-16 13:45:57 +02:00
Ewowi
f0fdfc73b9 Pong improvements but still WIP 2022-09-16 13:45:30 +02:00
Ewowi
cd5474374b Merge branch 'small-changes' into mdev 2022-09-16 13:32:25 +02:00
Ewowi
4b164b88b9 platformio: add USERMOD_GAMES to MoonModule entries (esp32mdevums,Wemos) 2022-09-16 13:32:01 +02:00
Ewowi
27a149098f Merge branch 'games-usermod' into mdev 2022-09-16 13:29:17 +02:00
Blaz Kristan
799d4f9465 Playlist load bugfix.
serializeConfig() in loop() (prevent crash/hang in web server callback)
2022-09-14 22:28:06 +02:00
Blaz Kristan
47797bcf4a Playlist loading bugfix. 2022-09-14 20:13:03 +02:00
Blaz Kristan
8402de601f More fixes for GPIOs.
UI fixes.
2022-09-13 21:41:51 +02:00
Blaz Kristan
4dec75c589 Remove constraints when saving interface pins. 2022-09-13 20:26:45 +02:00
Blaz Kristan
ac15b227da isPinOk() for S2 & C3 2022-09-13 19:50:13 +02:00
Ewowi
598a956ce0 Merge remote-tracking branch 'origin/dev' into games-usermod 2022-09-13 15:44:07 +02:00
Ewowi
16b2dad9b9 games-usermod: pong wip 2022-09-13 15:43:40 +02:00
Ewowi
35bdd111d6 Merge remote-tracking branch 'origin/dev' into mdev 2022-09-13 15:02:30 +02:00
Blaz Kristan
a1dc7a52e9 Merge branch '0_14' of https://github.com/aircoookie/WLED into dev 2022-09-12 22:39:00 +02:00
Blaz Kristan
6ba3e25d33 Meteor palette bugfix.
Fire2012 cooling adjustment.
Akemi optimisation.
2022-09-12 22:33:30 +02:00
Blaz Kristan
51a2fa47c9 Meteor palette fix.
Akemi optimisation.
Fire2012 remove cooling adjustment.
2022-09-12 22:31:55 +02:00
Blaz Kristan
09bd6dba84 ESP32 GPIO 37 & 38 removed from reserved list. 2022-09-12 21:15:19 +02:00
Frank
925bc3b3dd AR: get rid of annoying "type conversion" warning 2022-09-11 14:32:00 +02:00