Created
March 24, 2021 10:41
-
-
Save rlatn1234/93a65ab28a70f6ed887a236f44aea225 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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