write to card is fully functional

This commit is contained in:
2023-09-27 09:29:59 +02:00
parent a2ddbb575e
commit 364d019b3d
2 changed files with 21 additions and 8 deletions

View File

@@ -125,9 +125,6 @@ def write_nfc_loop(data):
# Try again if no card is available.
if uid is not None:
break
print("")
print("Found card with UID:", [hex(i) for i in uid])
set_neopixel_color(255,255,0)
@@ -160,6 +157,7 @@ def loop():
if rw == 'w':
while True:
sys.stdout.write('ID: \r')
poll_results = poll_obj.poll(1)
data = sys.stdin.readline().strip()
write_nfc_loop(data)
elif rw == 'r':