Skip to content

Instantly share code, notes, and snippets.

@rlatn1234
Created March 24, 2021 10:41
Show Gist options
  • Save rlatn1234/93a65ab28a70f6ed887a236f44aea225 to your computer and use it in GitHub Desktop.
Save rlatn1234/93a65ab28a70f6ed887a236f44aea225 to your computer and use it in GitHub Desktop.
import RPi.GPIO as GPIO
from mfrc522 import SimpleMFRC522
reader = SimpleMFRC522()
try:
id ,text = reader.read()
print(id)
print(text)
finally:
GPIO.cleanup()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment