Skip to main content

Provides byte (0 to 255) triggers on serial/parallel ports and on LSL streams.

Project description

Code style: black Imports: isort codecov tests doc

Byte-triggers

Delivers integer triggers between 0 and 255 on a parallel port or on an LSL marker stream.

Install

byte_triggers is available on PyPI.

pip install byte_triggers

Usage

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)

Copyright and license

The code is released under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

byte_triggers-0.3.0.tar.gz (21.1 kB view hashes)

Uploaded Source

Built Distribution

byte_triggers-0.3.0-py3-none-any.whl (26.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page