<gh_stars>0
#!/usr/bin/env python

import RPi.GPIO as GPIO
from mfrc522 import SimpleMFRC522

reader = SimpleMFRC522()
try:
    id, text = reader.read()
    print("id:" + str(id))
    print("text:" + text)
finally:
    print("starting clean up")
    GPIO.cleanup()
    print("finished clean up")
#!/usr/bin/env python

import RPi.GPIO as GPIO
from mfrc522 import SimpleMFRC522

reader = SimpleMFRC522()
try:
    id, text = reader.read()
    print("id:" + str(id))
    print("text:" + text)
finally:
    print("starting clean up")
    GPIO.cleanup()
    print("finished clean up")
#!/usr/bin/env python