26 lines
540 B
Python
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(8,16):
|
||
|
plc.write_pwm(i, 0, 4095)
|
||
|
time.sleep(1)
|
||
|
for i in range(8,16):
|
||
|
plc.write_pwm(i, 1, 4095)
|
||
|
time.sleep(1)
|
||
|
|