rahlstedt-audio/jfswrite.py
2021-05-01 11:18:03 +01:00

14 lines
283 B
Python

#!/usr/bin/env python
import RPi.GPIO as GPIO
from mfrc522 import SimpleMFRC522
reader = SimpleMFRC522()
try:
text = str(input('New integer:'))
print("Now place your tag to write")
reader.write(text)
print("Written")
finally:
GPIO.cleanup()