Skip to content

Instantly share code, notes, and snippets.

@EspaceRaspberryFrancais
Created February 15, 2018 10:05
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/ece7258bbdf1f409b10e86282ae87c29 to your computer and use it in GitHub Desktop.
Save EspaceRaspberryFrancais/ece7258bbdf1f409b10e86282ae87c29 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
import RPi.GPIO as GPIO
import SimpleMFRC522
reader = SimpleMFRC522.SimpleMFRC522()
try:
text = raw_input('Donnée :')
print("Placer le tag RFID ...")
reader.write(text)
print("OK")
finally:
GPIO.cleanup()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment