Does MFRC522 library support native SPI interface of Arduino Due?
By native SPI I mean this one: enter image description here
I came here with this question because the initializer asks for 2 pins: SS and Reset:
MFRC522(byte chipSelectPin, byte resetPowerDownPin);
SS pin can be any, but what about Reset?
1 Answer 1
There is no reason why it wouldn't support the Due's SPI. It just uses the default SPI.h library as the interface.
The resetPowerDownPin
can be anything you like. It is not part of the SPI protocol but specific to that library. It is just controlled with digitalWrite()
internally.
If you don't want to use the functionality you can set it to MFRC522::UNUSED_PIN
and it will be disabled.
-
1I tested it, it actually works.kelin– kelin2019年09月07日 20:31:40 +00:00Commented Sep 7, 2019 at 20:31
-
You have a typo, should be
MFRC522::UNUSED_PIN
.kelin– kelin2019年09月12日 09:06:25 +00:00Commented Sep 12, 2019 at 9:06 -
@kelin Indeed it should. Well spotted.Majenko– Majenko2019年09月12日 10:21:08 +00:00Commented Sep 12, 2019 at 10:21