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

SPI SS pin #16

Open
joaoantoniocardoso opened this issue Nov 16, 2018 · 0 comments
Open

SPI SS pin #16

joaoantoniocardoso opened this issue Nov 16, 2018 · 0 comments

Comments

@joaoantoniocardoso
Copy link

joaoantoniocardoso commented Nov 16, 2018

Hi,

in my last project using this lib I have a lot of trouble with SPI and have to manage outside of the lib to make sure that the SPI would work as master: set_bit(DDRB, PB2);, and it doesn't seems very polite at first glance.

So it would be nice to document that if the PB2 pin is floating, than it could have a noise in it that cause the SPI to initialize as slave instead master and the microcontroller' SPI wouldn't clock.

Or maybe modify the library to make (at spi_init() function?) the SS pin as output.

What do you think?

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

1 participant