Advertisement
mouhsineelachbi

read.py

Jun 11th, 2019
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. import RPi.GPIO as GPIO
  2. from mfrc522 import SimpleMFRC522
  3.  
  4. reader = SimpleMFRC522()
  5.  
  6. print("Looking for cards")
  7.  
  8. try:
  9.         id, text = reader.read()
  10.         print(id)
  11.         print(text)
  12. finally:
  13.         GPIO.cleanup()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement