Skip to content
Discussion options

You must be logged in to vote

Hm, maybe to make it more clear: Spi::new() doesn't return a Spi instance, but instead a tuple of Spi and the ChipSelectPin. See https://rahix.github.io/avr-hal/avr_hal_generic/spi/struct.Spi.html#method.new

What you're after is just the Spi instance, so you need to destructure the tuple.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
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
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 #365 on November 15, 2022 15:43.