Commit Graph

3192 Commits

Author SHA1 Message Date
Frank
b5d7a985d4 Merge remote-tracking branch 'origin/small-changes' into mdev 2022-09-26 15:56:24 +02:00
Frank
5c482afded small fix for compiling with framework V4.4.x
don't re-define ARDUINO_RUNNING_CORE if already defined by the framework.
2022-09-26 15:55:44 +02:00
Frank
31d022f26b Merge remote-tracking branch 'origin/mdev_new-FrameWork4' into mdev 2022-09-26 15:06:33 +02:00
Frank
2e634c20fa update
- ESPAsyncWebServer 2.0.6 (fixes crashes)
- added platformV4 and platformV4_packages
- all new MCUs use same platform
2022-09-26 14:50:31 +02:00
Ewowi
e19f3a0d30 Merge branch 'weather-usermod' into mdev 2022-09-23 17:41:20 +02:00
Ewowi
af3e250f76 Weather usermod: wait on connection, check location, apikey, json filter
- add isConnected
- checks on location and apiKey
- add arduinoJson filter to reduce size
2022-09-23 17:40:41 +02:00
Ewowi
47b6ccf1a7 Merge branch 'small-changes' into mdev 2022-09-23 13:03:14 +02:00
Ewowi
af557a864e Merge branch 'games-usermod' into mdev 2022-09-23 13:03:07 +02:00
Ewowi
ab3c07a2a8 Merge branch 'dev' into mdev 2022-09-23 13:02:51 +02:00
Ewowi
0ed6f52c8c platformio.ini: update esp32mdevums
- use https://github.com/softhack007/LITTLEFS-threadsafe.git#master
- refactor esp32mdevums: add comments (to be augmented as still questions)
2022-09-23 13:00:45 +02:00
Ewowi
471ccf946b Games usermod: MPU-6050 working on esp32-s2 branch
- allocateMultiplePins
- isUpdating: be nice, but not too nice (to do: should be used in all usermods! => new function isUpdatingBeNice)
2022-09-23 12:50:11 +02:00
Ewowi
e9a74a0889 Merge remote-tracking branch 'origin/dev' into games-usermod 2022-09-22 16:22:34 +02:00
Blaz Kristan
222b92807e Percent FX use % as index in palette.
FX Checkmark bugfix.
2022-09-21 21:09:52 +02:00
Frank
9f65b625a6 typo 2022-09-21 18:45:54 +02:00
Ewowi
1f775d98c3 Merge branch 'games-usermod' into mdev 2022-09-21 18:26:47 +02:00
Ewowi
37ee28fa0a Merge remote-tracking branch 'origin/dev' into mdev 2022-09-21 18:26:20 +02:00
Ewowi
c94228ae3c Games usermod: MPU-6050 gyro/accelero working 2022-09-21 18:09:13 +02:00
Frank
d5dcc644f4 added mdev PIO env for V4 Framwork
- ESP32 with PSRAM
- ESP32-S3
2022-09-21 17:18:52 +02:00
Frank
004dc51f7c basic PIO environment for ESP32-S3 and -S2
from AC WLED 0_14 branch
2022-09-21 14:31:15 +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