Skip to content

Conversation

@BryanKadzban
Copy link
Contributor

@BryanKadzban BryanKadzban commented Apr 9, 2023

Ideally the ledc module would let users pre-configure the OutputPin that it drives, instead of forcing the output to always be push-pull. Then internal pullups, pulldowns, etc. might all be possible as well. But for my current project, driving an output low and letting it float when high, is all I really need. (Driving it high would still result in current through the LEDs connected to it, as their voltage would be higher than the chip's 3.3V supply.)

Continue to default to push-pull.
@BryanKadzban BryanKadzban changed the title Let users configure the output_pin as open-drain Let users configure the LEDC output_pin as open-drain Apr 9, 2023
@BryanKadzban
Copy link
Contributor Author

Those two should fix the workflows. Yes, this is intentionally an API change for the channel's Config.

@BryanKadzban
Copy link
Contributor Author

Hopefully that last commit sorts this out for real. Not sure why the upstream rustc is OK without the semicolon but the xtensa fork errors, but either way, the fix should work for both.

Copy link
Contributor

@bjoernQ bjoernQ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bjoernQ bjoernQ merged commit e01a569 into esp-rs:main Apr 20, 2023
@BryanKadzban BryanKadzban deleted the add-open-drain branch April 21, 2023 04:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants