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

wip: Update to embedded-hal v1.0 #32

Closed
wants to merge 1 commit into from
Closed

Conversation

Dirbaio
Copy link
Contributor

@Dirbaio Dirbaio commented Dec 26, 2023

I'm not sure how to handle Reverse for InputPin: the 0.2 traits only give us &self, but the 1.0 traits require &mut self.

Maybe we can not implement InputPin on Reverse<T>, and and add a second set of mpls on Reverse<RefCell<T>> which does impl InputPin??

@MabezDev
Copy link

Maybe we can not implement InputPin on Reverse, and and add a second set of mpls on Reverse<RefCell> which does impl InputPin??

Hmm, this seems like the only way. At least I can't think of another. The trait has changed in a fundamentally breaking way, so we can only resort to interior mutability now.

@dimpolo
Copy link

dimpolo commented Mar 27, 2024

Would be nice to get this :)

@blaine
Copy link

blaine commented Apr 22, 2024

Seconding! 😊 I'm trying to use a 0.2.x driver that's not likely to get 1.0 compat soon, and I would extremely love to not have to add that support right now. :D

@Dirbaio
Copy link
Contributor Author

Dirbaio commented Apr 23, 2024

closing in favor of #34

@Dirbaio Dirbaio closed this Apr 23, 2024
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.

None yet

4 participants