Changes

Jump to navigation Jump to search
238 bytes added ,  09:44, 1 May 2014
Line 31: Line 31:     
== Python ==
 
== Python ==
 +
<nowiki>
 +
#!/usr/bin/env python
 +
 +
# import the rusocsci.buttonbox module
 +
from rusocsci import buttonbox
 +
 +
# make a buttonbox
 +
bb = buttonbox.Buttonbox()
 +
 +
# wait for a single button press
 +
bb.sendMarker(100)
 +
core.wait(0.002)
 +
bb.sendMarker(0)

Navigation menu