mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2025-10-29 17:50:37 +00:00
This PR adds the `active_high` parameter (defaulted to `True`) to the `OutputDevice` class. This permits flipping the logic of an output device in a similar manner to `pull_up` on `InputDevice`. It also adds a `Relay` class derived from `DigitalOutputDevice` which uses this parameter to flip the logic (as this is typically required with relays).