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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file byte_triggers-0.3.0.tar.gz.

File metadata

  • Download URL: byte_triggers-0.3.0.tar.gz
  • Upload date:
  • Size: 21.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.19

File hashes

Hashes for byte_triggers-0.3.0.tar.gz
Algorithm Hash digest
SHA256 0d0b5788d6a2978ddb11d85523aeb68d8bf04e65c024afeb5873961df57f78c4
MD5 5cc86fc06770a93b3fd5f25d95982a84
BLAKE2b-256 c291461f5b281b23403f0ff38a00b8dfdf1a60194927c00bf9928c098b7981f6

See more details on using hashes here.

File details

Details for the file byte_triggers-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for byte_triggers-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 239e9cfeebea983602a3c98ebaee4707badba39ba5aa2cc6dc7a3c2d0f46bd17
MD5 87e23b376498a4ac6e3013b1da87c4ce
BLAKE2b-256 f7b5e4a38cea0632f2624b29379bed5359ec71e4eacfd8b4ae4d266a279f553a

See more details on using hashes here.

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