Skip to content
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

[embassy-rp] Purpose of Drop implementation on Flex #2601

Open
adsnaider opened this issue Feb 19, 2024 · 0 comments
Open

[embassy-rp] Purpose of Drop implementation on Flex #2601

adsnaider opened this issue Feb 19, 2024 · 0 comments

Comments

@adsnaider
Copy link

Hi, this is somewhat a question and somewhat an issue. I was trying to set a pin's level manually while I was writing a little serial interface to test my board's GPIOs. I converted an AnyPin into an OutputPin to set its value, but when the OutputPin is dropped, the output's state is cleared.

I don't believe rp2040-hal works in this way so I was wondering why this is the case with embassy-rp. I got around it by forgeting the value, but I wonder if this is really the intended behavior and approach to what I'm attempting.

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

No branches or pull requests

1 participant