Files
loustique-home/composants/test/rfid.py

16 lines
287 B
Python
Raw Normal View History

from mfrc522 import SimpleMFRC522 as RFIDReader
2026-04-02 14:51:43 +02:00
##
reader = RFIDReader()
print("En attente...")
try:
while True:
badgeId, text = reader.read()
print("ID :", badgeId)
print("Texte :", text)
print("-----")
except KeyboardInterrupt:
2026-04-02 14:51:43 +02:00
print("Stop")