Hello all! Since I discovered the Uno five years ago, I wish I would have years before that. I've built 3 3D printers, a plasma cutter running grbl, Iot wifi controllers, dc servo motor positionners and even a new brain for our dishwasher that's still going strong!
I'm working on a new proof of concept project I could use a hand with. I've been trying code for three days and I'm running into many problems. Basically, I'm looking at a Mifare 1K card system for a transit system with an Uno and a RFID-RC522 card. We have a variable we will call "transfer". Let's say we set a new card, block 4 (completely random) to read 00. Declares "transfer" as 00. What I need, is code to read block 4 on the card. If it's a 00, then it will know it's new and write block 4 to a 01. Declares "transfer" as 01. So next time it reads block 4 and sees a 01, it knows it's used, thus rewriting to a 00, declaring "transfer" to 00, and so on. I hope this is clear as mud.
I don't have any code to post as I've been modding the librairies only to understand. I've been successful at writing the 00 and 01 and reading, just cannot figure out how to make it become a variable I can check. I would appreciate the help. I'm not being lazy, I'm a 49 year old blue collar worker that is just frustrated that he cannot figure this out on his own. If anything becomes of this, I would gladly footnote or pay for the help.
Thanks to all in advance and kudos to all supporters of this forum!