Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Vertical Sync sensor
(view source)
Revision as of 09:16, 6 December 2022
274 bytes added
,
09:16, 6 December 2022
→Python/PsychoPy
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:'''
Wiki-admin
Bureaucrats
,
Administrators
1,658
edits
Navigation menu
Personal tools
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Help
About
About the TSG
About this Wiki
FAQ
Disclaimer
Survey
Customer Survey
Tools
Special pages
Printable version