Skip to content
This repository was archived by the owner on Jun 16, 2026. It is now read-only.
This repository was archived by the owner on Jun 16, 2026. It is now read-only.

Improve TriggerInputOutputCapabilities attribute's to be more intuitive #195

Description

@dgmccart

TriggerInputOutputCapabilities has 2 attributes, input and output, with each being 8-bit integers. This class is used to specify which of the 8 available lines can be used as either an input or an output trigger. At the moment, the capability is specified by converting the 8-bit representation of the lines, with 1 indicating available and 0 indicating unavailable, to a decimal integer. For example, if lines 0 and 2 were available for input triggers, the 8-bit representation would be 0b00000101, which would be 5 in the decimal system, and the input attribute would be 5.

This could be improved by skipping the need for the conversion step. For example, accepting an 8 element list, so in the above example the input attribute would be [0,0,0,0,0,1,0,1], or for instance, just having the user specify which lines are available for triggering with their indices, so in the above example, the input attribute would be [0, 2].

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions