stm32-fmt-code/access_control_python/main.py

9 lines
177 B
Python

from access_control import access_control
import time
stm32 = access_control("COM7")
while True:
stm32.light_on()
time.sleep(1)
stm32.light_off()
time.sleep(1)