OSSLibraries / Arduino_MFRC522v2

https://osslibraries.github.io/Arduino_MFRC522v2/
GNU Lesser General Public License v2.1
100 stars 38 forks source link

feature request: optional chipSelectPin #48

Closed y-nk closed 1 month ago

y-nk commented 1 month ago

Could we have a drop in replacement of chipSelectPin to spi->pinSS() when using custom spi?

Rotzbua commented 1 month ago

See example: https://github.com/OSSLibraries/Arduino_MFRC522v2/blob/2.0.5/examples/CustomSPI/CustomSPI.ino If you need custom pin behavour implement interface MFRC522DriverPin from https://github.com/OSSLibraries/Arduino_MFRC522v2/blob/2.0.5/src/MFRC522DriverPin.h