Commit Graph

6444 Commits

Author SHA1 Message Date
Frank
30ce4c55ba remove HUB75 driver from esp32_16MB_V4 builds
due to known conflicts with I2S audio input
2026-02-03 23:11:53 +01:00
Frank
7fd23932e4 (minor) fix for apChannel reset to 1 instead of 6
spotted by @dedehai in https://github.com/wled/WLED/pull/5332
2026-02-03 17:14:54 +01:00
Frank
5eab1e7cec adding esp32_4MB_V4_S buildenv without HUB75 driver
this build might work better for users with I2S microphone, because the HUB75 driver can interfere with the I2S driver.
2026-02-03 16:25:13 +01:00
Frank
dea91bc2ab spots effect bugfix
* use named constants for fixed point scaling
* remove buggy "SEGLEN / (zones >>3)" shortcut
* align code with upstream
2026-02-03 10:33:52 +01:00
Frank
a47bbfe05b spots effect improvements
* use native 32bit types (similar to upstream)
* avoids gaps on left/right side of strip, by using higher accuracy for zoneLength
* prevent overflow on "s"
* fix wrongly named slider in "spots fade"
2026-02-02 23:06:03 +01:00
Frank
b17819e2ce better trails for PS Fireworks 2026-01-30 12:47:13 +01:00
Frank
1d686d7807 leds 2D preview: better color accuracy
* replace "jumpy" color enhancement with a smooth function
* slightly increase size of preview pixels
2026-01-29 13:49:53 +01:00
Frank
1210881bd8 reduce risk of crashes (stack smashing) due calls to notify()
The function uses a UDP buffer of ~1200 bytes on stack, which is only needed when actually sending out notifications.
-> separate activation checks and actual sending into two functions, to reduce stack pressure.
2026-01-29 13:00:53 +01:00
Frank
c945732c8d Update NodeStruct.h
sync with upstream
2026-01-28 23:57:23 +01:00
Frank Möhle
f4237b6505 new ESP32 node types
Added new node types for unsupported ESP32 variants, based on same file from ESP Easy.

Just to be prepared for new nodes (future support)
2026-01-28 23:55:07 +01:00
Frank
b691cdee56 build 2601281 2026-01-28 23:05:06 +01:00
Frank
e8a3383c2e esp-now WizMote data description update
based on same file from upstream
2026-01-28 23:03:10 +01:00
Damian Schneider
afcd48f7ac adding image rotation to PixelForge gif tool (#5309) 2026-01-28 22:39:02 +01:00
Frank
bbe8e6eb0f remove static functions (Philips HUE)
fixes the build error
2026-01-28 22:17:25 +01:00
Frank
4b47714f68 Philips hue robustness improvements
* reduce JSON buffer from 1024 to 640
* ESP32: define buffer globally (reduces likelyhood of crashes due to low stack)
* added some sanity checks after string ops
* delete hueClient object after closing the connection

* make functions static if not used outside of hue.cpp, re-shuffle order where needed
* rename JSON buffer object: root -> jsonHUEroot
2026-01-28 22:12:24 +01:00
Frank
de0f5c89fc stateUpdated robustness improvements
* acquire segmentMux before applying changes
* avoid temporary segment copy (copy can lead to new buffer allocations)
2026-01-28 20:32:42 +01:00
Frank Möhle
d29402d64f quickfix for sporadic "relay does not turn on" issues
see discussion in https://github.com/wled/WLED/issues/5312
2026-01-26 13:54:32 +01:00
Frank Möhle
c2d755bcdf Merge pull request #326 from MoonModules/dxm_hotfix
hotfix for DMX-serial output (prevents random crashes caused by array bounds violations)
* Align ESPDMX and SparkFunDMX with upstream code
* Prevent driver compilation when WLED_ENABLE_DMX is not set (saves ~1KB RAM)
* Protect against writing outside of array bounds
* Align start byte handling between ESPDMX and SparkFunDMX driver.
2026-01-25 18:01:52 +01:00
Frank
57d63b7362 ESPDMX robustness improvements
* clamp channel to dmxMaxChannel (write)
* ensure that all data get sent, including start byte
2026-01-25 17:45:08 +01:00
Frank Möhle
0718a6d265 comment clarification
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-01-25 17:30:03 +01:00
Frank Möhle
e6e2348483 protect start byte
If Channel is less than 0, it's clamped to 0 on line 134. Then on line 138, dmxData[0] is written with the value, overwriting the start byte that was just set on line 137. DMX Channel numbers should be 1-based (1-512). The bounds check should clamp Channel to a minimum of 1, not 0, to prevent corrupting the start byte

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-01-25 17:29:10 +01:00
Frank
3150f3b448 use correct DMXSerial object on -S2 and -C3 2026-01-25 17:12:04 +01:00
Frank
8faa88e05b chanSize expansion must account for start byte 2026-01-25 17:02:06 +01:00
Frank
f0753d6cf6 robustness improvement
bounds check before changing global variables
2026-01-25 16:18:30 +01:00
Frank
2628e9167d fix max number of bytes to be sent 2026-01-25 16:15:24 +01:00
Frank
82f713093e indentation 2026-01-25 15:46:57 +01:00
Frank
279d48a3d1 (minor) clarify compile-time messages for DMX drivers 2026-01-25 15:44:40 +01:00
Frank
fb738883fa safeguards against array bounds violation 2026-01-25 15:43:53 +01:00
Frank
900178cd70 only build DMX drivers when WLED_ENABLE_DMX
both ESPDMX and SparkFunDMX have their own global buffers. Conditional compile prevents that these buffers are consuming RAM when not needed.
2026-01-25 15:08:40 +01:00
Frank
6ad6acfe08 align DMX output drivers with upstream
imports a few DMX serial output improvement from upstream
2026-01-25 15:06:27 +01:00
Frank
f0531cdf2a animartrix: temporarily use softhack007 fork
(hotfix for build failures) switch to softhack007 fork, until PR#2 was merged
2026-01-25 01:28:41 +01:00
Frank Möhle
7019f29eaf upgrade animartrix library dependancy
Updated animartrix library dependency to a new commit for custom PSRAM allocator.
2026-01-21 17:28:27 +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
Frank
88acb54241 some more attributes
for better optimization by the compiler
2026-01-17 14:08:11 +01:00
Frank
6aea3b5a77 align 2D particleFX with upstream
minor improvements from upstream
2026-01-17 13:58:04 +01:00
Frank
d987206d3b make wled_math functions IRAM_ATTR (faster) 2026-01-17 13:56:29 +01:00
Frank
1f065f69c2 post-merge
* replace all remaining sqrt16() with sqrt32_bw()
* align particleGalaxy effects with upstream
2026-01-17 13:21:02 +01:00
netmindz
729f623953 Merge pull request #4558 from DedeHai/wifi_hardware_timing_fix
Bugfix for incorrect wifi-hardware timing
2026-01-17 12:19:17 +01:00
Damian Schneider
532c9b762c replacement for fastled sqrt16() (#4426)
* added bitwise operation based sqrt16

- replacement for fastled, it is about 10% slower for numbers smaller 128 but faster for larger numbers. speed difference is irrelevant to WLED but it saves some flash.

* updated to 32bit, improved for typical WLED use

- making it 32bits allows for larger numbers
- added another initial condition check for medium sized numbers
- increased the "small number" optimization to larger numbers: the function is currently only used to calculate sqrt(x^2+y^2) which even for small segments is larger than the initially used 64, so optimizing for 1024 makes more sense, although the value is arbitrarily chosen
2026-01-17 12:18:35 +01:00
netmindz
bf4aae8e60 Merge pull request #4682 from DedeHai/PS_galaxy
Add new effect: PS Galaxy
2026-01-17 11:52:46 +01:00
netmindz
2b543f2199 Merge pull request #4577 from DevJogger/main
Add apple-touch-icon Link Tag
2026-01-17 11:43:52 +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
Damian Schneider
3259b3acb0 Bugfix for brightness factor upon save: fixes #4824 (#4827) 2026-01-17 11:17:07 +01:00
Frank Möhle
c795c6a20e Update CONTRIBUTING.md with PR guidelines
Added guidelines for creating pull requests from branches in forks and cautioned against force-pushing.
2026-01-17 01:25:44 +01:00
Frank
855cfae224 align filtering in release.yml and nightly.yml 2026-01-16 23:46:25 +01:00
Frank Möhle
9ce0436c9c Uncomment esp01_1MB_S in platformio.ini
Re-enable nightly build for esp01 (1MB). The board is no longer supported officially, but if users want to try, let them try.
2026-01-16 20:45:41 +01:00