-
Notifications
You must be signed in to change notification settings - Fork 21
SPI "SS" pin #18
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
Comments
I think you can use any pin. SPIClass SPI(PB15, PB14, PB13, PB11); |
@phillowcompiler It is clear to me that more or less any pin can be used for the Slave Select signal in my own code. The issue is that the Arduino RFID Library for MFRC522 that depends on SPI expects the SS pin to be defined after including the
|
I see😃 https://docs.platformio.org/en/latest/projectconf/section_env_build.html |
Yes, I could do that, but my primary goal was to report this problem so it hopefully will be fixed sooner or later before an official release. An implementation of the Arduino SPI library will be useless or difficult to use if it doesn't implement the features that are expected by existing code... |
I'm trying out the SPI library from the current master branch (as of commit e7e1d8a) with the Arduino RFID Library for MFRC522, and the firstcompilation error that comes up is that there is no
SS
pin is defined.Apparently each Arduino implementation should declare a
SS
define that refers to the default pin to be used for the "Slave Select" signal. See https://www.arduino.cc/en/Reference/SPI.The text was updated successfully, but these errors were encountered: