balena-io-hardware / autokit-interface-sw

Apache License 2.0
5 stars 2 forks source link

add crelay implementation #63

Closed rcooke-warwick closed 1 year ago

rcooke-warwick commented 1 year ago

Add support for crelay supported usb relays: https://github.com/ondrej1024/crelay

This tool can be used to control the original usb relay too - technically making the AutokitRelay class redundant - but leaving it there for now for removal at a later day following in the field testing of this new implementation.

To be used with leviathan-worker, an additional PR (pending) on that repo must be merged.

To select this device, the env var POWER=crelay can be set

Change-type: patch`

rcooke-warwick commented 1 year ago

@balena-ci I self-certify!