Commit d574589e authored by Jakob Moser's avatar Jakob Moser
Browse files

Read id as well

parent 7ed2b888
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -5,6 +5,9 @@ from mfrc522 import SimpleMFRC522
reader = SimpleMFRC522()

try:
    print(reader.read())
    id, content = reader.read()
    print("Id", id)
    print("Id (hex)", hex(id))
    print("Content", content)
finally:
    GPIO.cleanup()