Skip to content

Pin configuration change in loop #311

Answered by Rahix
holotrack asked this question in Q&A
Discussion options

You must be logged in to vote

The methods are into_floating_input() and into_pull_up_input(), check the docs: https://rahix.github.io/avr-hal/avr_hal_generic/port/struct.Pin.html

But we're working on a more ergonomic way to do this, take a look at MR #205. If this fits your usecase and you can provide some feedback on the API, I can merge those changes so they become generally available.

Replies: 6 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Rahix
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #269 on September 02, 2022 10:32.