Skip to content

Unable to use InputPin #205

@David-OConnor

Description

@David-OConnor
pub fn f<P: embedded_hal::v2::digitial::InputPin>(pin: &P)  {
};
^^^^^^^^^^^^^^^^^^^^ the trait `embedded_hal::digital::v1::InputPin` is not implemented for `&rppal::gpio::pin::InputPin`

I'm not sure why v1's in there. It's not implemented, but I don't understand what I did to require it to be implemented.

Edit: If I wrap the struct and try to manually impl the v1 trait, it argues I'm impling conflicting implementations; this is a second vote for v1 coming out of v2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions