Warning
This project is discontinued in favor of stimuli.
Delivers integer triggers between 0 and 255 on a parallel port or on an LSL marker stream.
byte_triggers
is available on PyPI.
pip install byte_triggers
For the API reference, see the online documentation.
from byte_triggers import LSLTrigger, MockTrigger, ParallelPortTrigger
trigger = MockTrigger()
trigger.signal(1)
trigger = LSLTrigger("MyTrigger")
trigger.signal(1)
# on-board parallel port on linux
trigger = ParallelPortTrigger("/dev/parport0")
trigger.signal(1)
# on-board parallel port on windows
trigger = ParallelPortTrigger(0x4FB8)
trigger.signal(1)
# arduino to parallel port converter
trigger = ParallelPortTrigger("arduino")
trigger.signal(1)
The code is released under the MIT License.