jacdac.relay
Submodules
Package Contents
Classes
A switching relay. |
- class jacdac.relay.RelayClient(bus: jacdac.bus.Bus, role: str)
Bases:
jacdac.bus.Client
- A switching relay.
The contacts should be labelled NO (normally open), COM (common), and NC (normally closed).
When relay is energized it connects NO and COM.
When relay is not energized it connects NC and COM.
Some relays may be missing NO or NC contacts.
When relay module is not powered, or is in bootloader mode, it is not energized (connects NC and COM).
Implements a client for the Relay service.