Changes

Jump to navigation Jump to search
274 bytes added ,  09:16, 6 December 2022
Line 88: Line 88:     
=== Python/PsychoPy ===
 
=== Python/PsychoPy ===
 +
 +
<br/>'''The basic'''
 +
 +
<syntaxhighlight lang="python" line>
 +
# initialize treshold for OFF by sending a code
 +
ser.write(b'1')
 +
 +
visual.Rect(win, .15, .25, pos=(-1, 1),fillColor="white", units="norm").draw()
 +
win.flip()
 +
# wait for a sync square
 +
b = ser.read()
 +
</syntaxhighlight>
    
<br/>'''Example using the Vertical Sync sensor in PsychoPy:'''
 
<br/>'''Example using the Vertical Sync sensor in PsychoPy:'''

Navigation menu