Commit Graph

1277 Commits

Author SHA1 Message Date
Frank
ef63a1a500 (experimental) bugfix for Ethernet Errors when using I2S audio
For "v4" builds only.
See upstream https://github.com/wled/WLED/issues/5391
2026-02-22 21:02:47 +01:00
Frank Möhle
cce3c0b5d3 psram-aware malloc functions (backport of upstream #4895) (#342)
Introduces new memory allocation functions, based on wled#4895 by @DedeHai

* keep a minimum of 15KB RAM available to UI - improves stability
* S3/S2/C3 automatically use "fast RTC Ram" for small data (reduces fragmentation)
* auto-detects PSRAM (or no PSRAM) when firmware was built with -D BOARD_HAS_PSRAM
* d_malloc() and d_calloc() prefer DRAM if possible (faster), but fall back to PSRAM when free RAM gets low.
2026-02-18 17:57:47 +01:00
Frank
50bb4d2910 I2S_USE_16BIT_SAMPLES does not work
add build error, as the 16bit code does not work any more in esp-idf v4.x
2026-02-17 15:49:38 +01:00
Frank Möhle
279573e366 Disable 16-bit sampling for I2S driver (fix for #333)
Comment out the HUB75 conditional definition of I2S_USE_16BIT_SAMPLES due to compatibility issues.
2026-02-16 23:02:57 +01:00
Frank
f2107bc274 animartrix bugfix: segment options changes not considered
* changing segment options (mirror, transpose) must lead to new call of "init"
* indentation fixes
2026-01-18 20:05:15 +01:00
Frank
501a1ec618 Animartix optional gamma correction 2026-01-18 18:34:54 +01:00
Frank
61a7d697dd animartrix bugfix: always paint in 2D mode
avoid "accidential" use of 1Dexpand mapping modes
2026-01-18 17:21:08 +01:00
Frank
9f1d68c529 animartrix speedup: crank up math optimizations
may reduce accuracy, but gives up to 20% speedup in animartrix effects
2026-01-18 17:19:28 +01:00
Frank
57b60b9227 animartrix usermod speedups
=> effects run up to 40% faster
* use WLED-MM specific shortcut for SEGMENT access
* use speed-optimized math functions in AnimArtrix effects
2026-01-17 22:56:17 +01:00
netmindz
0095d9caac Merge pull request #4360 from euphi/patch-1
Usermod BME280: Fix "Unit of Measurement" for temperature
2026-01-17 11:30:33 +01:00
Frank
6625e2bb12 nitpick 2026-01-11 19:35:15 +01:00
Frank
a44d2d3f8e renamed user options, and minor code clarity improvements
* rename user option to "skip old data"
* remove unneeded variable lastValidPacketSize
* rename constant AR_UDP_AVG_SEND_RATE -> AR_UDP_AVG_SEND_RATE
2026-01-11 19:11:24 +01:00
Frank
69b8fe11aa clarify misleading comment 2026-01-11 18:33:40 +01:00
Frank
7d7cebdd79 minor cleanups
* add "override" to all methods that oveeride the base usermod class
* fixing a minor copy-paste mistake
* ovoid shadowing class attributes
* spelling, grammar and other nitpick
2026-01-11 18:19:33 +01:00
Frank
d813bc430c AR sound receive: user option for queue purge 2026-01-11 17:39:24 +01:00
Frank
cefd42116a AR UDP: automatic packet drop
experimental -> works
2026-01-11 15:20:33 +01:00
Frank
0b71bbab1f AR: new sequence check
experimental -> works
removing old code
2026-01-11 15:19:30 +01:00
Frank
3ce3718124 AR bugfix: UDP format detection
remove early assignment receivedFormat = 2
2026-01-11 15:17:20 +01:00
Frank
c5e8a1a080 AR receiver: improved sequence checking
experimental
2026-01-11 02:09:30 +01:00
Frank
201bba0759 AR receiver: automatic packet droping
* rework of PR #231
* allow droping packets when
   - first connection
   - silence
   - re-connect after timeout
   - main loop is too slow
2026-01-11 02:08:41 +01:00
Frank
56866752ee AR bugfix
missing "break" for AC101 setup
2026-01-09 16:46:31 +01:00
Frank
f9c7828eeb fix parameter order in calloc() calls
calloc(nmemb, bytes) allocates memory for an array of _nmemb_ elements of size _bytes_
2026-01-01 22:02:06 +01:00
netmindz
0f5c1bb4b4 Merge pull request #4683 from srg74/main
Fixing markdownlint errors
2025-12-16 01:21:55 +01:00
Frank
e0c7d254bb fix outdated URLs
Aircoookie Wiki => mm.kno.wled.ge
MoonModules/WLED => MoonModules/WLED-MM
Aircoookie/WLED => wled/WLED
2024 => 2025
2025-11-23 17:18:10 +01:00
Frank
219355d047 AR audio sync: improved sequence check for audio packet handling
currently just a comment so I don't forget about it :-) needs some testing but very sure this will work.
2025-11-18 23:57:44 +01:00
Frank
8342679d4a Merge pull request #264 from MoonModules/copilot/fix-256 (fixes #256)
Fix AutoPlaylist race condition with AutoChange preset applications - avoid self-deactivation problem
2025-11-15 17:13:14 +01:00
netmindz
2c62cd5e41 Merge pull request #4690 from Arcitec/ar-agc-control
AR: add compile-time flag for "Automatic Gain Control" option
2025-11-03 16:16:19 +01:00
Frank
b215c8209d post-merge updates
CONFIG_ASYNC_TCP_TASK_STACK_SIZE => CONFIG_ASYNC_TCP_STACK_SIZE
2025-10-25 21:48:55 +02:00
MoonModules
e6876caba1 Update GitHub links to MM-Effects repository
WLED-Effects repo has been renamed to MM-Effects.
ArtiFX links to this repo so updated in artifx.js
2025-10-23 19:24:45 +02:00
copilot-swe-agent[bot]
49a1399ed6 Fix AutoPlaylist race condition: use CALL_MODE_NOTIFICATION for AutoChange presets
Co-authored-by: netmindz <442066+netmindz@users.noreply.github.com>
2025-09-20 11:38:25 +00:00
Troy
598e9aa724 Update audio_source.h
ES8311 Fix - works 100% of the time now. Thanks ESPHome for the hint!
2025-08-09 11:38:49 -04:00
Will Tatam
b280349573 Fix compile error with UsermodBME280 2025-06-29 20:17:35 +01:00
Will Tatam
f7529cb704 animartrix - use predictable effect IDs 2025-05-10 13:46:25 +01:00
Troy
5a06280935 receiveAudioData() process last packet in buffer now to account for slower refreshes 2025-01-29 18:10:08 -05:00
Frank
da8f907874 Merge pull request #4439 from dosipod/Upstream_PRs
Update readme.md for rgb-rotary-encoder usermod
2025-01-07 16:12:47 +01:00
Frank
fdc43e0a2b Update usermod_PIR_sensor_switch.h - avoid starvation due to strip.isupdating()
Another instance of the "if (strip.isupdating()) return;" problem that we inherited from upstream 🙄
2025-01-03 17:45:01 +01:00
Troy
b4323a3256 Fixes for ES8311 auto level control 2025-01-02 12:38:35 -05:00
Frank
257b7b5876 better audiosyncPacket description (audio_reactive.h)
clarify meaning of some fields
2024-12-29 19:56:28 +01:00
Troy
a5e9df6668 Revert "Merge pull request #204 from troyhacks/Strip_Level_Color_Adjust"
This reverts commit db55872732, reversing
changes made to 972257a7ee.
2024-12-10 12:14:03 -05:00
Troy
6ad0b2893a Merge branch 'mdev' into Strip_Level_Color_Adjust 2024-12-10 12:12:44 -05:00
netmindz
67e78296be Merge pull request #168 from troyhacks/ES8311-Support
ES8311 Support
2024-12-03 14:48:25 +00:00
Damian Schneider
e914417c74 Merge pull request #4181 from DedeHai/0_15_trig_math
Added integer based `sin()/cos()` functions, changed all trig functions to wled_math
2024-11-29 00:23:43 +01:00
Ewoud
33318dab25 Merge pull request #170 from MoonModules/license 2024-10-16 00:14:46 +02:00
Frank
22b16ab542 Align all licensing statements with EUPL-1.2 2024-10-14 21:52:52 +02:00
Frank
db983d80ca fir for 8266 build 2024-10-14 11:34:56 +02:00
Frank
68536635d7 show toast when reboot is needed, or error restart happened
less WTF, more information
2024-10-14 11:25:41 +02:00
Frank
0dd036cdce AR: trying to improve coexistence with HUB75
Hub75 is very memory hungry. So we try to make a bit more RAM available
* use 16bit samples when compiling with HUB75 support --> 3KB saved
* avoid using aPLL (HUB75 needs it)
* move audio buffers from BSS (always allocated) to heap (only allocated when FFTtask runs) --> 10Kb saved
* suspend live preview for 6 seconds when out-of-memory
2024-10-13 23:06:50 +02:00
Frank
98bdbd1eb2 AR: trying to improve co-existance with HUB75 DMA
bad news: wifi still crashes very frequently when I2S audio is in use.
2024-10-08 21:24:06 +02:00
Frank
5381119f9e AR: new input type 'None' for network receive only 2024-10-08 19:00:59 +02:00
Troy
283a7284b4 ES8311 support added for the ESP32-P4 EV board with mic. 2024-10-02 10:02:34 -04:00