Skip to content

Instantly share code, notes, and snippets.

@EspaceRaspberryFrancais
Last active February 15, 2018 13:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EspaceRaspberryFrancais/d59a23627174dc0c68ac2c94983b878f to your computer and use it in GitHub Desktop.
Save EspaceRaspberryFrancais/d59a23627174dc0c68ac2c94983b878f to your computer and use it in GitHub Desktop.
#!/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