Open RevZero opened 5 days ago
[Triage] @RevZero can you try with both LibGpiodDriver, SysFsDriver and RaspberryPi3Driver directly and see if that makes any difference? If you haven't done yet please make sure you have installed libgpiod (with i.e. apt)
Describe the bug
After initializing a GpioButton, the IsPressed property is always false, even if the logical state (depending on active low/high configuration) of the pin is true.
Steps to reproduce This examples assumes pin 16 being externally pulled up, having a switch connected which is currently pulling the input low.
Expected behavior IsPressed should be initialized according to the initial pin state instead after the first transition.
Versions used
System.Device.Gpio
package: 3.1.0