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.4.1.tar.gz (22.1 kB view details)

Uploaded Source

Built Distribution

byte_triggers-0.4.1-py3-none-any.whl (27.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: byte_triggers-0.4.1.tar.gz
  • Upload date:
  • Size: 22.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for byte_triggers-0.4.1.tar.gz
Algorithm Hash digest
SHA256 6754a68f41a336cc1ef33f294511767711e4a686a85dae5de7f0accb3da8749f
MD5 171dc9c65b04a43893cdfda1d11a6587
BLAKE2b-256 d2a6a0588cc1e8eaff6fdf51e90fec7d833edb8c18438e3aa03b453befdb7665

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for byte_triggers-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1f534aa1b3a0dbb9b91dde39c8f0ae598bda6fec582a7f973155650c069ae695
MD5 ea797a496c4d2980b76ed024d66e831a
BLAKE2b-256 bbbad687e846d43c45b9f83e4fe8a401fdab9b2e333c9d075936b759dc780449

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