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

Pin<Input<Floating>, Dynamic> has pullup enabled #411

Closed
kabel42 opened this issue May 1, 2023 · 0 comments · Fixed by #412
Closed

Pin<Input<Floating>, Dynamic> has pullup enabled #411

kabel42 opened this issue May 1, 2023 · 0 comments · Fixed by #412
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@kabel42
Copy link
Contributor

kabel42 commented May 1, 2023

After calling into_floating_input() on a dynamic pin the pullup is enabled

Example:

fn main() -> ! {
    let dp = arduino_hal::Peripherals::take().unwrap();
    let pins = arduino_hal::pins!(dp);

    let mut pin3 = pins.d3.downgrade();
    pin3 = pin3.into_floating_input();
    loop {}
}
@Rahix Rahix added bug Something isn't working help wanted Extra attention is needed labels May 2, 2023
@Rahix Rahix closed this as completed in #412 May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants