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

generic spi? #450

Open
marrsus opened this issue Nov 12, 2023 · 3 comments
Open

generic spi? #450

marrsus opened this issue Nov 12, 2023 · 3 comments

Comments

@marrsus
Copy link

marrsus commented Nov 12, 2023

i am working with an pololu ZUMO 32U4 oled. it uses an atmega32u4. The problem is i can't figure out how to make a spi connection with the oled. the problem being that the makers of this board uses other pins and i can't seam to find a spi implementation that allow for me to make the spi interface

@Rahix
Copy link
Owner

Rahix commented Nov 16, 2023

Hi, we only implement a driver for the hardware SPI peripheral here in avr-hal. If you need to talk SPI with different pins you have to use a software implementation of the protocol instead. Maybe the one from bitbang-hal does the trick?

@marrsus
Copy link
Author

marrsus commented Nov 17, 2023

looks promising, do you have a embedded-hal::timer implementation for avr-hal or do i have to try my luck at making my own

@Rahix
Copy link
Owner

Rahix commented Nov 19, 2023

Hm, I'm afraid we don't have an e-h::timer implementation right now :/ Your best bet right now is building your own using a hardware timer and its registers directly...

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

No branches or pull requests

2 participants