The RFID module needs to be initialized before it is ready to use.
// Initialize RIFD module
MFRC522.Init()
This function reads the cards unique ID and returns it.
// Read unique ID
MFRC522.getID()
Data stored on the card can be retrieved with this function.
// Read data
MFRC522.read()
Write data, formatted as string, to the card.
// Write data
MFRC522.write("1234")
After use, the antenn can be turned off.
// Turn antenna off
MFRC522.AntennaOff()
- for PXT/microbit
MIT