Created
November 12, 2019 15:44
-
-
Save jenovateurs/6082295bcbdc1eaaef23e33816446a7d to your computer and use it in GitHub Desktop.
Ecrire des données sur un badge/carte RFID avec un Raspberry Pi
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: | |
text = raw_input('New data:') | |
print("Now place your tag to write") | |
reader.write(text) | |
print("Written") | |
finally: | |
GPIO.cleanup() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment