rfid test is working
This commit is contained in:
parent
d8f3407276
commit
2418cf7cbb
12
rfid_test.py
Normal file
12
rfid_test.py
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
from time import sleep
|
||||||
|
import RPi.GPIO as GPIO
|
||||||
|
from mfrc522 import SimpleMFRC522
|
||||||
|
|
||||||
|
reader = SimpleMFRC522()
|
||||||
|
|
||||||
|
while True:
|
||||||
|
id, text = reader.read()
|
||||||
|
print(id)
|
||||||
|
print(text)
|
||||||
|
sleep(1)
|
||||||
|
GPIO.cleanup()
|
Loading…
x
Reference in New Issue
Block a user