-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
bus_wrapper: Use parallel I2S first when enabled #4762
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
Conversation
WalkthroughThe update modifies the internal logic of the PolyBus class in bus_wrapper.h. It adds conditional handling for channel remapping when using parallel I2S output on ESP32 (excluding ESP32-C3) and adjusts how the offset is determined in the getI method for various ESP32 variants. No public interfaces are changed. Changes
Suggested reviewers
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (20)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
blazoncek
left a comment
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.
Fine, just update comments to reflect actual behaviour.
|
IMO this should also go into 0_15_x branch |
|
Unfortunately it won't cherry-pick without some conflict resolution, so I have not merged into 0_15_x Are you able to cherry-pick and resolve @willmmiles ? |
|
@netmindz I've cherry picked and rebased the fix to 0.15.x here: #4766 Thank you Will! If I understand correctly, these changes makes WLED prefer Parallel I2S instead of RMT to avoid the RMT flickering issues. I see that it selects offset 1 (I2S) when the channel number In other words, it seems like everyone will be on Parallel I2S output mode now unless they have 9 or more channels, after which the last channels will start using RMT? Good change! 👍 |
On ESP32, if parallel I2S is enabled, use it first, before selecting RMT outputs. This provides a quick workaround for RMT output issues (#4389), though it doesn't warn about #4315.
Summary by CodeRabbit