Hello to everyone! I am new in coding and i bought an Arduino Leonardo for a RFID lock. I got a sketch from internet and it's for uno and i want to use it. I have just one problem: The RST from the RC522 connects to pin 9 on UNO and it goes to RESET/ICSP-5 on Leonardo. So for Uno it's preety simple:
define RST_PIN 9
But for Leonardo it does not work, i tried :
define RST_PIN ICSP-5
define RST_PIN RESET
What should i do? How should i define that RESET/ICSP-5 pin?
Link to sketch: http://duinos.net/files/2015/rfid_lock.ino