The BlackBox ToolKit v2 is a device that allows psychologists to accurately measure the timing of audio-visual stimuli.
The BBTKv2 communicates via a serial protocol over USB. The bbtkv2 python module provided here encapsualtes (some of) the commands described in the API Guide. In a nutshell:
import bbtkv2
bb = bbtkv2.BlackBoxToolKit()
bb.adjust_thresholds() # adjust the thresholds manually
bb.clear_timing_data()
text = bb.capture(10)
df1 = bbtkv2.capture_output_to_dataframe(text)
processed_events = bbtkv2.capture_dataframe_to_events(df1)
print(processed_events)
Check https://bbtkv2.readthedocs.io/en/latest/intro.html
pip install bbtkv2