Line 23: |
Line 23: |
| == Psychopy Settings == | | == Psychopy Settings == |
| | | |
− | | + | <code>#!/usr/bin/env python from psychopy import core, visual, event from rusocsci import buttonbox import logging, time</code> |
− | | + | <code>##Setup Section</code> |
− | <code>#!/usr/bin/env python | + | <code>#logging.getLogger().setLevel(logging.DEBUG) # use this for debug info</code> |
− | from psychopy import core, visual, event | + | <code>win = visual.Window([400,300], monitor="testMonitor") bb = buttonbox.Buttonbox()</code> |
− | from rusocsci import buttonbox | + | <code>##Experiment Section</code> |
− | import logging, time | + | <code>b = bb.waitButtons(maxWait = 10.0, buttonList=['A']) print("b: {}".format(b))</code> |
− |
| + | <code>##Cleanup Section</code> |
− | ## Setup Section | + | <code>core.quit()</code> |
− | #logging.getLogger().setLevel(logging.DEBUG) # use this for debug info | |
− | win = visual.Window([400,300], monitor="testMonitor") | |
− | bb = buttonbox.Buttonbox() | |
− |
| |
− | ## Experiment Section | |
− | b = bb.waitButtons(maxWait = 10.0, buttonList=['A']) | |
− | print("b: {}".format(b)) | |
− |
| |
− | ## Cleanup Section | |
− | core.quit() </code> | |
| | | |
| == Matlab Settings == | | == Matlab Settings == |