Changes

Jump to navigation Jump to search
109 bytes added ,  12:33, 16 November 2022
Line 106: Line 106:  
rect = visual.Rect(win, .15, .25, pos=(-1, 1),fillColor="white", units="norm")
 
rect = visual.Rect(win, .15, .25, pos=(-1, 1),fillColor="white", units="norm")
    +
# wait 5 sec for python to become stabel
 +
core.wait(5)
 +
ser.flushInput()
 
# define treshold for OFF by sending a code
 
# define treshold for OFF by sending a code
 
ser.write(b'1')
 
ser.write(b'1')
Line 117: Line 120:  
b = ser.read()
 
b = ser.read()
 
tik = time.perf_counter()
 
tik = time.perf_counter()
# show result, 60Hz/~0.016s 120Hx/~0.008s
+
# show delay after a flip
print("your timing: {}s".format(tik-tok))
+
print("your timing after a flip: {}s".format(tik-tok))
 +
# as a remark 60Hz/~0.016s 120Hz/~0.008s
    
## Cleanup Section
 
## Cleanup Section

Navigation menu