You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
61: Fix active low behavior of GPIO output pins r=eldruin a=MorganR
When an output pin is in active-low mode, the try_set_low and try_set_high functions currently incorrect behavior.
In keeping with the input behavior for `try_is_high` and `try_is_low`, "high" and "low" should refer to the actual output voltage. This works as expected for pins that are not in active-low mode, but if a pin is in active-low mode, then the opposite happens:
* calling `try_set_low` sets the voltage high
* calling `try_set_high` sets the voltage low
This bug and the fix have been verified using [this test program](https://github.com/MorganR/active-low-test).
Co-authored-by: Morgan Roff <[email protected]>
0 commit comments