stm32-fmt-code/access_control_python/test.py

27 lines
539 B
Python
Raw Normal View History

2023-11-13 12:12:30 +00:00
2023-11-14 15:55:26 +00:00
# from espmega.espmega_r3 import ESPMega_standalone as ESPMega
# import time
# import math
2023-11-13 12:12:30 +00:00
2023-11-14 15:55:26 +00:00
# plc = ESPMega("/facescan","192.168.0.239",1883)
2023-11-13 12:12:30 +00:00
2023-11-14 15:55:26 +00:00
# i = 0
2023-11-13 12:12:30 +00:00
2023-11-14 15:55:26 +00:00
# # while True:
# # #print(plc.digital_read(0))
# # i= round(4095* abs(math.sin(time.perf_counter()*3.14)))
# # print(i)
# # plc.analog_write(1, 1,i)
# # time.sleep(0.1)
# while True:
# plc.digital_write(1,1)
# time.sleep(1)
# plc.digital_write(1,0)
# time.sleep(1)
2023-11-13 12:12:30 +00:00
2023-11-14 15:55:26 +00:00
from time import perf_counter
while True:
print(round((perf_counter()/2)%1))