Skip to main content
3 of 7
added 61 characters in body
Milliways
  • 61.5k
  • 32
  • 108
  • 212

It is impossible to determine the state of GPIO on most Pi (except by measurement).

It is possible with the Pi4 and I have written a Python3 library (based on RPi.GPIO) which does this and a program gpioread which shows this and the actual programmed function/state.

See https://raspberrypi.stackexchange.com/a/117593/8697

Milliways
  • 61.5k
  • 32
  • 108
  • 212