14 lines
283 B
Python
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() |