Skip to content

Instantly share code, notes, and snippets.

@rlatn1234
Last active April 30, 2022 09:19
Show Gist options
  • Save rlatn1234/3c8d3cc1f1ebb8dc931e91c7e9531341 to your computer and use it in GitHub Desktop.
Save rlatn1234/3c8d3cc1f1ebb8dc931e91c7e9531341 to your computer and use it in GitHub Desktop.
import RPi.GPIO as GPIO
from mfrc522 import SimpleMFRC522
reader = SimpleMFRC522()
try:
text = 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