In the file
/etc/default/capemgr, I have no options passing to capemgr at boot (
CAPE= is the only entry).
In the file
/boot/uEnv.txt , I have deleted cape_universal=enable (uncommented line now reads
cmdline=coherent_pool=1M net.ifnames=0 quiet )
If I then run
config-pin overlay cape-universal I get:
# cat /sys/devices/platform/bone_capemgr/slots
0: PF---- -1
1: PF---- -1
2: PF---- -1
3: PF---- -1
4: P-O-L- 0 Override Board Name,00A0,Override Manuf,cape-universal
If I then run the following two config-pin commands,
# config-pin P9.11 uart
# config-pin P9.13 uart the pins for UART4 are enabled and it works from a Python script.
Now, I can use config-pin to setup GPIO pins as inputs, outputs, pulldown, pullup, high, low, etc,
the Adafruit_BBIO python library generated some error "Set gpio direction failed, missing file or invalid permissions." last night, but when I went to duplicate it this morning (reboot), it worked.
Last night, I was running as root, tried using sudo, etc etc, still not sure about the permissions error.
But it is working now to toggle GPIO out and to set pins as input or output, except I still can't get
GPIO.event_detected
to work the way I want.