https://github.com/fcbg-platforms/byte-triggers
Discontinued in favor of https://github.com/mscheltienne/stimuli
https://github.com/fcbg-platforms/byte-triggers
lsl parallel-port triggers
Last synced: 30 days ago
JSON representation
Discontinued in favor of https://github.com/mscheltienne/stimuli
- Host: GitHub
- URL: https://github.com/fcbg-platforms/byte-triggers
- Owner: fcbg-platforms
- License: mit
- Archived: true
- Created: 2023-10-07T11:05:44.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-03T09:26:22.000Z (over 1 year ago)
- Last Synced: 2026-01-04T08:15:40.184Z (about 1 month ago)
- Topics: lsl, parallel-port, triggers
- Language: Python
- Homepage: https://fcbg-platforms.github.io/byte-triggers/
- Size: 319 KB
- Stars: 1
- Watchers: 0
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/psf/black)
[](https://pycqa.github.io/isort/)
[](https://codecov.io/gh/fcbg-platforms/byte-triggers)
[](https://github.com/fcbg-platforms/byte-triggers/actions/workflows/pytest.yml)
[](https://github.com/fcbg-platforms/byte-triggers/actions/workflows/doc.yml)
> [!WARNING]
> This project is discontinued in favor of [stimuli](https://github.com/mscheltienne/stimuli).
# 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](https://pypi.org/project/byte_triggers/).
```
pip install byte_triggers
```
## Usage
For the API reference, see the online
[documentation](https://fcbg-platforms.github.io/byte-triggers).
```
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](https://opensource.org/licenses/MIT).