stm32-fmt-code/access_control_python/test3.py

11 lines
244 B
Python
Raw Normal View History

2023-11-17 15:43:10 +00:00
from time import perf_counter
from time import sleep as delay
flag: bool = False
while True:
state = round((perf_counter())%1)
if(flag!=state):
flag = state
print(f"change to : {state}")
print(state)
delay(0.05)