Commit Graph

620 Commits

Author SHA1 Message Date
Ewowi
bd6ef0464f Merge remote-tracking branch 'origin/dev' into mdev 2022-10-10 16:35:25 +02:00
Frank
53f1270988 Merge remote-tracking branch 'origin/audio-reactive' into mdev 2022-10-07 17:53:48 +02:00
Frank
19fd5f61db update for ICS-43434 big speaker 2022-10-07 17:44:24 +02:00
Frank
fc9d7f54d8 Merge remote-tracking branch 'origin/audio-reactive' into mdev 2022-10-06 18:26:06 +02:00
Frank
f5b74a2b79 Merge remote-tracking branch 'origin/audioreactive-prototype' into audio-reactive 2022-10-06 18:22:58 +02:00
Frank
64441b39ac critical bugfix
it's possible that volume samples become negative. In this scenario, our simple noise gate does stupid things, and it looks like "effects temporarily lost the sound".
This fix improves the situation, and makes sure that volume samples are always >= 0.
2022-10-06 15:39:28 +02:00
Blaž Kristan
6a3ef2a2e4 Merge pull request #2809 from ingDIY/0_14
defines improvement
2022-10-06 12:15:30 +02:00
srg74
5038e4396e Update usermod_PWM_fan.h
Changed values for proper work.
2022-10-05 15:30:09 -04:00
Frank
c497c6345d Merge remote-tracking branch 'origin/audio-reactive' into mdev 2022-10-05 17:58:48 +02:00
Frank
5ed0bb8c2b Microphone calibration profiles 2022-10-05 17:55:54 +02:00
Frank
698a6c8f89 Merge remote-tracking branch 'origin/audioreactive-prototype' into audio-reactive 2022-10-04 16:20:40 +02:00
Frank
1ae0dd574d fix for ADC analog
the "wait until I2S buffer fills" trick does not work for ADC sources, as the I2S sampling does not run in background for ADC.
2022-10-04 16:00:36 +02:00
Frank
c00910e100 Merge remote-tracking branch 'origin/audioreactive-prototype' into audio-reactive 2022-10-04 14:00:53 +02:00
Frank
78e0c3dcca make MIC_LOGGER work again
- EVERY_N_MILLIS somehow does not work. Replaced it,
- make sure that WLED_DEBUG does not report "fake FFT times" whrn FFT code was not running
2022-10-04 13:47:07 +02:00
ingDIY
bdb1e839ed Update readme.md
added description about the configuration of setting:
-D USERMOD_ROTARY_ENCODER_GPIO
2022-10-03 19:22:52 +02:00
ingDIY
503835d47e submitting PR
Here they are the PR #2776, #2803 and #2804 rebased for 0_14 branch,
I hope that now they are OK!
2022-10-02 23:23:24 +02:00
Ewowi
6aa189fb65 Merge remote-tracking branch 'origin/dev' into mdev 2022-10-01 12:05:49 +02:00
Frank
82b1e5c09d GEQ: more dynamics
work in progress.
This brings some more dynamics into GEQ, without causing flickering.
-> Try with Dynamcs Fall =  300ms.
2022-09-30 22:57:21 +02:00
Frank
d0278ddc83 tiny change
komma
2022-09-30 21:59:58 +02:00
Frank
a861059553 Merge remote-tracking branch 'origin/dev' into audio-reactive 2022-09-30 21:58:14 +02:00
Blaž Kristan
f385af595a Add setMode() and setPalette() methods
- automatically start transition
Implement load FX defaults for HTTP API (FXD)
2022-09-29 12:49:12 +02:00
Ewowi
fea487c950 Merge branch 'games-usermod' into mdev 2022-09-27 15:31:11 +02:00
Ewowi
9414f531dd IMO support in usermod games, add 3D IMO cube effect
- platformio: add USERMOD_MPU6050_IMU and ElectronicCats/MPU6050 @ 0.6.0 to esp32mdevums
- USERMOD_MPU6050_IMU: update readme.md and usermod_mpu650_imu.h
- usermod_v2_games: support for  USERMOD_MPU6050_IMU, add mode_IMUTest and class Frame3D and mode_3DIMUCube, remove old gyro handling
- usermods_list.cpp: add USERMOD_MPU6050_IMU
2022-09-27 15:19:58 +02:00
Frank
859dbd5b23 small fix for compiling with IDF v4.4.x
LITTLEFS -> WLED_FS
2022-09-27 12:54:24 +02:00
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
Stefan Riese
b6adbc926f Usermod wordclock: support for upfront LEDs (#2668)
* - add ledOffset to support LEDs that are not effected by the usermode before the wordclock LEDs

* - adjust readme
2022-09-26 09:35:42 +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
af557a864e Merge branch 'games-usermod' into mdev 2022-09-23 13:03:07 +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
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
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
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
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
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
85fc8710dd mics that need MCLK should work 2022-09-17 20:39:23 +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
Blaz Kristan
dfe4d70198 Merge branch 'audioreactive-prototype' into esp32-s2 2022-09-16 15:38:44 +02:00
Ewowi
14ded6d867 Merge branch 'games-usermod' into mdev 2022-09-16 13:45:57 +02:00