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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for byte_triggers-0.4.0.tar.gz
Algorithm Hash digest
SHA256 847cdb664034f94d23c653530a2c15d4224468e85525e7152abe1719ff109f85
MD5 5cb10bdb05f1db189c497e4d62916145
BLAKE2b-256 3a89f5866f1259d0c24a4f9fb700d462fd0880f3023021eb46b37c183cbc00e1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for byte_triggers-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cc8a5fadbf548f4e5846ab519c6d2f93b01b3e3b5a9f6fb7a6640731f679d68d
MD5 b427bc9143c1ea32c079036beb8bd273
BLAKE2b-256 86932d2f5a5947ae0f9f8966a535fe79f2be0e46f1db89e579080ecfbc05028e

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