Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

31 Commits

Repository files navigation

mfrc522

A python library to read/write RFID tags via the budget MFRC522 RFID module.

This code was published in relation to a blog post and you can find out more about how to hook up your MFRC reader to a Raspberry Pi there.

Installation

Until the package is on PyPi, clone this repository and run python setup.py install in the top level directory.

Example Code

The following code will read a tag from the MFRC522

fromtimeimportsleepimportsysfrommfrc522importSimpleMFRC522reader=SimpleMFRC522()
try:
whileTrue:
print("Hold a tag near the reader")
id, text=reader.read()
print("ID: %s\nText: %s"% (id,text))
sleep(5)
exceptKeyboardInterrupt:
GPIO.cleanup()
raise

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages