Commit Graph

6224 Commits

Author SHA1 Message Date
Blaž Kristan
b375c718b0 Merge pull request #4771 from wled/fix-4643
Fix for #4643 - Missing MQTT updates
2025-09-17 12:20:41 +02:00
Will Miles
b16fbafd83 Merge pull request #4890 from willmmiles/esp32-rmthi
Import RmtHI driver
2025-09-16 21:32:16 -04:00
Damian Schneider
76cb2e9988 Improvements to heap-memory and PSRAM handling (#4791)
* Improved heap and PSRAM handling

- Segment `allocateData()` uses more elaborate DRAM checking to reduce fragmentation and allow for larger setups to run on low heap
- Segment data allocation fails if minimum contiguous block size runs low to keep the UI working
- Increased `MAX_SEGMENT_DATA` to account for better segment data handling
- Memory allocation functions try to keep enough DRAM for segment data
- Added constant `PSRAM_THRESHOLD` to improve PSARM usage
- Increase MIN_HEAP_SIZE to reduce risk of breaking UI due to low memory for JSON response
- ESP32 makes use of IRAM (no 8bit access) for pixeluffers, freeing up to 50kB of RAM
- Fix to properly get available heap on all platforms: added function `getFreeHeapSize()`
- Bugfix for effects that divide by SEGLEN: don't run FX in service() if segment is not active
-Syntax fix in AR: calloc() uses (numelements, size) as arguments

* Added new functions for allocation and heap checking

- added `allocate_buffer()` function that can be used to allocate large buffers: takes parameters to set preferred ram location, including 32bit accessible RAM on ESP32. Returns null if heap runs low or switches to PSRAM
- getFreeHeapSize() and getContiguousFreeHeap() helper functions for all platforms to correctly report free useable heap
- updated some constants
- updated segment data allocation to free the data if it is large

- replaced "psramsafe" variable with it's #ifdef: BOARD_HAS_PSRAM and made accomodating changes
- added some compile-time checks to handle invalid env. definitions
- updated all allocation functions and some of the logic behind them
- added use of fast RTC-Memory where available
- increased MIN_HEAP_SIZE for all systems (improved stability in tests)
- updated memory calculation in web-UI to account for required segment buffer
- added UI alerts if buffer allocation fails
- made getUsedSegmentData() non-private (used in buffer alloc function)
- changed MAX_SEGMENT_DATA
- added more detailed memory log to DEBUG output
- added debug output to buffer alloc function
2025-09-16 19:46:16 +02:00
Will Tatam
9d706010f5 Update WLED app links for Android and iOS 2025-09-14 19:05:47 +01:00
Will Tatam
97b20438fd Fix typo in 'Originally' in readme.md 2025-09-14 19:03:21 +01:00
Will Tatam
65913f990d Update project title and add creator attribution 2025-09-14 18:24:19 +01:00
Will Tatam
56d00357d3 testing thanks.dev 2025-09-14 18:12:03 +01:00
netmindz
1864e550e6 Update funding to include currently active maintainers 2025-09-14 15:32:37 +01:00
netmindz
a79ae25621 null check in setBrightness
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-09-13 14:10:04 +01:00
Will Tatam
05c481c5bb Remove duplicate envs 2025-09-13 13:47:44 +01:00
Will Tatam
7ce0d69563 Merge branch 'HUB75-AC' of github.com:netmindz/WLED into HUB75-AC 2025-09-13 13:41:19 +01:00
netmindz
011e72c3c1 Revert nPins = Bus::getNumberOfPins change
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-09-13 13:41:04 +01:00
Will Tatam
e44bdf6193 reset board back to correct definition 2025-09-13 13:38:29 +01:00
Will Tatam
29dcdf8e85 Merge branch 'HUB75-AC' of github.com:netmindz/WLED into HUB75-AC 2025-09-13 13:35:13 +01:00
Will Tatam
e37d4cd8a8 Remove platformio_override.ini leaving only sample envs 2025-09-13 13:34:52 +01:00
netmindz
46e60b4d0a Only read pinArray if initialized
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-09-13 11:08:35 +01:00
Damian Schneider
75f6de9dc2 bugfix in Colortwinkles
thx @blazoncek
2025-09-09 07:31:19 +02:00
Blaž Kristan
649d43b581 Bugfix for FX: Tri Fade
- incorrectly calculated counter and progress
2025-09-08 11:37:43 +02:00
Damian Schneider
16cfbf7500 Merge pull request #4913 from DedeHai/percentFX_UI_fix
fix ancient UI bug that hides the speed slider in percent FX
2025-09-07 20:34:57 +02:00
Soeren
aecac2c56c Add CORS proxy information to README 2025-09-07 13:15:28 +02:00
Damian Schneider
385504e6db fix ancient UI bug that hides the speed slider in percent FX 2025-09-05 19:53:15 +02:00
Will Miles
a0321170d0 Merge pull request #4859 from Liliputech/udp_name_sync_rework
new usermod hooks "onUdpPacket"
2025-09-04 22:29:21 -04:00
netmindz
d70018ae9f Merge pull request #4910 from willmmiles/async-mqtt-client-dep
Un-vendor AsyncMqttClient
2025-09-04 07:33:27 +01:00
Will Miles
9359f0b7fc Fix include style 2025-09-03 23:29:24 -04:00
Will Miles
be74196a62 Un-vendor AsyncMqttClient
Switch to the upstream version.  This fixes a memory leak when
re-connection fails.
2025-09-03 23:05:20 -04:00
netmindz
705f2035f4 Change npm install to npm ci for dependencies
Updated installation instructions for dependencies.
2025-09-03 20:42:15 +01:00
Damian Schneider
65efcb351e Merge pull request #4908 from wled/copilot/fix-4788
Fix 2D matrix generator preview not updating after population
2025-09-03 20:07:54 +02:00
copilot-swe-agent[bot]
72ad39d6a7 Fix 2D matrix generator preview update issue
Co-authored-by: DedeHai <6280424+DedeHai@users.noreply.github.com>
2025-09-03 17:51:00 +00:00
copilot-swe-agent[bot]
5950204d34 Initial plan 2025-09-03 17:41:50 +00:00
netmindz
46df9410b3 Merge pull request #4900 from wled/copilot/fix-4881
Fix changelog generation to exclude unresolved closed issues
2025-09-03 07:16:45 +01:00
copilot-swe-agent[bot]
b7e4cd0d9a Fix parameter naming for changelog generator configuration
Co-authored-by: netmindz <442066+netmindz@users.noreply.github.com>
2025-09-02 07:54:14 +00:00
copilot-swe-agent[bot]
0becd61323 Fix changelog generation to exclude unresolved closed issues
Co-authored-by: netmindz <442066+netmindz@users.noreply.github.com>
2025-09-02 07:52:13 +00:00
copilot-swe-agent[bot]
3f2e92c4c5 Initial plan 2025-09-02 07:45:32 +00:00
netmindz
666a59ff53 Update platformio_override configuration for esp32 2025-09-02 08:06:41 +01:00
netmindz
ce7ca3f2d2 Add pull_request trigger for usermods workflow 2025-09-02 07:35:51 +01:00
netmindz
87092ccb80 Correct message formatting in PR merge workflow
Fix formatting in Discord webhook message for PR merge.
2025-09-02 07:11:55 +01:00
Will Miles
2e834852d5 RmtHI: Add missing includes
While these were both fortunately included in Arduino.h, as
@coderabbitai suggests, it's best practice to be explicit for anything
one uses directly.
2025-09-01 22:03:18 -04:00
Will Miles
3e9e18dae2 Undo RMTHi change to platformio.ini
PlatformIO's Library Dependency Finder will take care of it based on
the #include.
2025-09-01 22:00:24 -04:00
Will Miles
831b68e60b usermods CI: Use correct base esp32 platform 2025-09-01 21:56:19 -04:00
Will Miles
5e3803a5bb RmtHI: Fix incorrect method typedefs 2025-09-01 21:51:36 -04:00
Will Miles
91d7e0c051 RmtHI: Remove incorrect default selection block 2025-09-01 21:50:57 -04:00
Damian Schneider
a037d99469 added debug output on crash, removed whitespaces 2025-09-01 22:22:16 +02:00
Damian Schneider
8cc5d64819 Merge pull request #4853 from willmmiles/bootloop-platform-simplification
Bootloop detection platform factoring
2025-09-01 22:17:07 +02:00
netmindz
4c948cca13 Merge pull request #4860 from tarontop/main
support iotorero ethernet controller
2025-09-01 10:03:54 +01:00
Aiden
5cb8dc3978 Delete the same define 2025-09-01 11:05:31 +08:00
Will Tatam
199bc45ae2 Merge branch 'main' into HUB75-AC 2025-08-31 12:53:25 +01:00
netmindz
8fc87aa17d Merge pull request #4844 from Arcitec/0_16-fix-sync
Fix broken Sync button after 0.15 refactor
2025-08-31 12:30:19 +01:00
Will Miles
19a49e83d1 Import RmtHI driver
Pull the RMT High-priority Interrupt driver in to a vendored local
library, pending inclusion in upstream NeoPixelBus.

Driver is enabled only for XTensa chips; there's some unresolved
issue with nested interrupts on RISCV.
2025-08-30 15:57:04 -04:00
Arthur Suzuki
c8757d45c8 fix more nitpicks comments 2025-08-30 04:12:46 +02:00
Arthur Suzuki
62fad4dcdf applied coderabbit suggestions 2025-08-30 01:52:36 +02:00