0

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

0

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.

3
  • 1
    I tested it, it actually works.
    – kelin
    Commented Sep 7, 2019 at 20:31
  • You have a typo, should be MFRC522::UNUSED_PIN.
    – kelin
    Commented Sep 12, 2019 at 9:06
  • @kelin Indeed it should. Well spotted.
    – Majenko
    Commented Sep 12, 2019 at 10:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.