Skip to content

Instantly share code, notes, and snippets.

@tbuwadi

tbuwadi/read.py Secret

Last active February 5, 2022 05:04
Embed
What would you like to do?
#!/usr/bin/env python
import RPi.GPIO as GPIO
from mfrc522 import SimpleMFRC522
reader = SimpleMFRC522()
try:
print("Waiting for you to scan an RFID sticker/card")
id = reader.read()[0]
print("The ID for this card is:", id)
finally:
GPIO.cleanup()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment