Loading read.py +4 −1 Changes for read.py: 4 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -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() Loading
read.py +4 −1 Changes for read.py: 4 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -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()