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