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

Leonardo default pins not working #4

Open
rodesch-ryan opened this issue Jul 21, 2023 · 1 comment
Open

Leonardo default pins not working #4

rodesch-ryan opened this issue Jul 21, 2023 · 1 comment

Comments

@rodesch-ryan
Copy link

I attempted to use this library with an Arduino Leonardo, but was unable to get the pins to work. It looks like the library may not be accounting for the differences in the Leonardo's pins if my deductive reasoning isn't failing me.
image
The pins on the Leonardo don't seem to match the ones listed in the file.
image
I'm unsure of how to solve this issue and thought I'd bring it to your attention

@veroxzik
Copy link
Owner

veroxzik commented Sep 18, 2023

Sorry for the insanely long delay on this issue.

You are correct that the current Leonardo pinout references these pins (D10-D13) as SPI, but to be honest with you, I don't believe them. Unless a new revision of Leonardo has come out past R3 (I can't find anything to suggest this is the case), then I assume Arduino expects you to use software SPI to access these four pins, which this library does not use for performance reasons.

The image below has the pinout I referenced and cross-checked with Arduino's previous schematics, and as far as I'm aware, is correct for the Leonardo. The hardware SPI pins are shown in purple.
Arduino Leonardo Pinout

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