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?

asked Sep 7, 2019 at 14:08

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.

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

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.