mqtt-io icon indicating copy to clipboard operation
mqtt-io copied to clipboard

Inconsistent inversion logic on digital inputs and digital outputs

Open flyte opened this issue 3 years ago • 1 comments

When DigitalInputChangedEvent is fired, from_value and to_value uses the actual logic level of the GPIO pin which is affected by inversion, whereas when DigitalOutputChangedEvent is fired, it uses the abstract "on" or "off" which is inversion agnostic.

Along with adding these logic-level classes to the developer documentation, make it consistent which of them are being used at any given moment throughout the codebase.

flyte avatar Apr 06 '21 18:04 flyte

I have tried using inverted: true and inverted: yes for my inputs but they always show the opposite of how I would like them to report. Am I missing something or some syntax? Thanks!

heffneil avatar Jul 29 '21 14:07 heffneil