Skip to content

Instantly share code, notes, and snippets.

@jenovateurs
Created November 12, 2019 15:44
Show Gist options
  • Save jenovateurs/6082295bcbdc1eaaef23e33816446a7d to your computer and use it in GitHub Desktop.
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
#!/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