stm32-fmt-code/access_control_python/test.py

26 lines
540 B
Python

import threading
import time
import face_processing as fp
from access_control_mqtt import access_control
from database import Database, Student, Parent
from display import Display
from espmega_mqtt import ESPMegaMQTT
#SERIAL_PORT_DISPLAY = "COM26"
CAMERA_INDEX = 0
#actrl = access_control()
#display = Display(SERIAL_PORT_DISPLAY)
db = Database()
plc = ESPMegaMQTT()
while True:
for i in range(0,16):
plc.write_pwm(i, 0, 2000)
time.sleep(1)
for i in range(0,16):
plc.write_pwm(i, 1, 2000)
time.sleep(1)