Last active
February 15, 2018 13:18
-
-
Save EspaceRaspberryFrancais/d59a23627174dc0c68ac2c94983b878f 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
#!/usr/bin/env python | |
import RPi.GPIO as GPIO | |
import SimpleMFRC522 | |
reader = SimpleMFRC522.SimpleMFRC522() | |
try: | |
print("Presenter le tag RFID...") | |
id, text = reader.read() | |
print "UID :", id | |
print "Donnee :", text | |
finally: | |
GPIO.cleanup() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment