Skip to content

YFROBOT-TM/pxt-yfrobot-rfid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Initialize YFROBOT RFID 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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published