27 lines
		
	
	
		
			No EOL
		
	
	
		
			539 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			No EOL
		
	
	
		
			539 B
		
	
	
	
		
			Python
		
	
	
	
	
	
 | 
						|
# from espmega.espmega_r3 import ESPMega_standalone as ESPMega
 | 
						|
# import time
 | 
						|
# import math
 | 
						|
 | 
						|
# plc = ESPMega("/facescan","192.168.0.239",1883)
 | 
						|
 | 
						|
# i = 0
 | 
						|
 | 
						|
# # 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)
 | 
						|
 | 
						|
from time import perf_counter
 | 
						|
 | 
						|
while True:
 | 
						|
    print(round((perf_counter()/2)%1)) |