wallah pardon sur le coran de l eglise c'est pas de ma faute
This commit is contained in:
15
composants/test/rfid.py
Normal file
15
composants/test/rfid.py
Normal file
@@ -0,0 +1,15 @@
|
||||
from mfrc522 import SimpleMFRC522 as RFIDReader
|
||||
|
||||
reader = RFIDReader()
|
||||
|
||||
print("En attente...")
|
||||
|
||||
try:
|
||||
while True:
|
||||
badgeId, text = reader.read()
|
||||
print("ID :", badgeId)
|
||||
print("Texte :", text)
|
||||
print("-----")
|
||||
|
||||
except KeyboardInterrupt:
|
||||
print("Stop")
|
||||
Reference in New Issue
Block a user