Commit 920c60dd authored by matteo perini's avatar matteo perini

add write tag

parent 31f34532
import RPi.GPIO as GPIO
from mfrc522 import SimpleMFRC522
reader = SimpleMFRC522()
try:
text = input("Scrivi il testo da mettere nel tag: ")
print("Adesso avvicina il tag RFID al ricevitore per la scrittura!")
reader.write(text)
print("Ho scritto nel tag RFID: ", text)
except:
print("Ci sono stati degli errori! Riprova!")
pass
finally:
GPIO.cleanup()
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment