capella-ben / LUA_RC522

MFRC522 RFID reader/writer for the NodeMCU
28 stars 22 forks source link

RC522.request() always returns false #5

Closed soccermitchy closed 6 years ago

soccermitchy commented 6 years ago

Whenever I do print(RC522.request()), I always get this false nil, even when I have a card or fob right next to or in front of the reader. I'm on the NodeMCU build as of commit 5073c199c01d4d7bbbcd0ae1f761ecc4687f7217 with the modules bit,crypto,file,gpio,http,net,node,spi,tmr,uart,wifi. How would I fix this?

soccermitchy commented 6 years ago

Figured out my issue, was using the wrong pin numbers at the top of the file.