I’m trying simple scripts and find that P8_7 - 10 always return “1” when set as inputs. Researching this I find that all sample code uses P8_11, 12 or 14 for digital input. I understand that some pins might be requisitioned for other functions in the Beagle, but I don’t see that these pins are. It took me HOURS to figure out why dirt simple code would not run. But I’d like to understand why I can’t make these pins inputs (with Adafruit GPIO or Unix file commands) when the documentation suggests they would work.
Are you grounding the pin before reading? Are you connecting to 3V3 before reading?
If you are reading a floating input (ie not connected) you will have problems.
If you have a copy of the Device Summary, SPRS717G, you can find out what the floating pin will read.
Also, did you export the gpios to sysfs?
echo 66 > /sys/class/gpio/export #P8-7
echo 67 > /sys/class/gpio/export #P8-8
echo 69 > /sys/class/gpio/export #P8-9
echo 68 > /sys/class/gpio/export #P8-10