libgpiod_pulsein fails with "Unable to set line N to input" on Raspberry Pi OS, so read via bitbang and release the pin after a single-shot run. Co-authored-by: Cursor <cursoragent@cursor.com>
libgpiod_pulsein fails with "Unable to set line N to input" on Raspberry Pi OS, so read via bitbang and release the pin after a single-shot run. Co-authored-by: Cursor <cursoragent@cursor.com>