This commit is contained in:
2026-04-01 22:23:25 +02:00
parent 0ea3e846f1
commit 23f7f78178
9 changed files with 104 additions and 80 deletions

View File

@@ -1,5 +1,5 @@
import time
from alarme import SystemeAlarme
from ALARM_V1 import *
from porterfid import SystemePorteRFID
# ------------------------------------------------------------
@@ -16,15 +16,18 @@ alarme = SystemeAlarme()
porte = SystemePorteRFID()
def call_board1():
try:
while True:
# Mise à jour des deux modules locaux
alarme.mettreAJour()
ALARM_V1.boucle_principale()
porte.mettreAJour()
time.sleep(0.05)
except KeyboardInterrupt:
porte.cleanup()
alarme.cleanup()
print("\nArrêt manuel du programme.")
finally: