Provides byte (0 to 255) triggers on serial/parallel ports and on LSL streams.
Project description
Byte-triggers
Delviers 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.2.0.tar.gz
(21.0 kB
view details)
Built Distribution
File details
Details for the file byte_triggers-0.2.0.tar.gz
.
File metadata
- Download URL: byte_triggers-0.2.0.tar.gz
- Upload date:
- Size: 21.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c89ada816190ccef811f89e178389c8e3c4b4ecfd585fe78b782cc123e19f1e |
|
MD5 | 75279953bf8c6bf70e9dd7de266bebf8 |
|
BLAKE2b-256 | d813351178c6dd92c76eec2dfcb53bf401c2aeaf621baf30ebba4c2c4cb97e6b |
File details
Details for the file byte_triggers-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: byte_triggers-0.2.0-py3-none-any.whl
- Upload date:
- Size: 26.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3c70c86cad514e88a785b3dd782ae71df230952559fcf4ac8320b2b2631fd22 |
|
MD5 | 8eb623362834a26142dbf49ec83b95fd |
|
BLAKE2b-256 | 5058356fee68c04ff49422b99988084119e37fec60c994743e7df4d31c35a38e |