| 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) |