-
-
Notifications
You must be signed in to change notification settings - Fork 4k
Improved bus handling: free choice of bus driver in any order and improved memory calculations #5303
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
DedeHai
wants to merge
25
commits into
wled:main
Choose a base branch
from
DedeHai:LEDdriverSelect
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+486
−339
Open
Improved bus handling: free choice of bus driver in any order and improved memory calculations #5303
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
9ad0d97
WIP: make bus driver (RMT/I2S) user-selectable
Copilot 8d9e775
define new constants instead of using local variable (WIP)
DedeHai 766097c
Simplify bus allocation by storing iType in BusConfig
Copilot b518c19
Fix parallel I2S DMA buffer estimation (8x multiplier)
Copilot 6934100
improvements to getI()
DedeHai cd1148d
Improve UI validation logic for RMT/I2S bus management
Copilot 044506f
Refactor UI validation: extract helper function and fix duplicate res…
Copilot 5ebf650
Apply I2S validation rules to finalizeInit() matching UI behavior
Copilot 89f07fd
add globals to UI
DedeHai d389806
remove obsolete I2S user select option, bugfix in getI(), better UI v…
DedeHai 02393b2
remove "600 LEDs max" restriction, bugfixes in mem calc, other fixes
DedeHai cb24aec
add proper restriction to RMT/I2S buses for legacy configs, still nee…
DedeHai ae2912d
cleanup, remove unused/duplicate code
DedeHai bf4a066
cleanup, simplified memory calculation code by removing clutter
DedeHai 0954f6c
cleanup, add ifdefs for ESP8266 to save some ram (UI for ESP8266 is b…
DedeHai e4f89e5
bugfix in UI: mux max buses instead of RMT+I2S which are zero on ESP8…
DedeHai 94974fc
fix in UI if all RMT buses are used (restrict type)
DedeHai 5231b27
fixes in memory calculations, added buffers to memory use, updated ma…
DedeHai 33bacc1
removed some debug outputs
DedeHai 0ea65d0
bugfixes, added ptr=nullptr to p_free() and d_free() for robustness
DedeHai 0a724bd
bugfixes, removed annoying debug output
DedeHai 8c10915
improvements for S2
DedeHai ead95e8
update for C3, removed max LED restriction, increased MAX_LED_MEMORY
DedeHai 7554783
use CONFIG_IDF_TARGET_ESP32 instead of ARDUINO_ARCH
DedeHai ff34848
revert nullpointer mishap
DedeHai File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Release allocated pins when
iTypeis invalid.Line 145 returns early on
I_NONEafter pin allocation, leaving pins reserved and the bus partially constructed. This is particularly risky for usermods that forget to populateiType.🛠️ Suggested fix
🤖 Prompt for AI Agents