ROC-RK3328-CC GPIO Pins
Posting here, hoping to help someone else out. I've been using the Libre Computing Renegade T-Firefly boards for VPN Endpoints running Debian 10.x (Armbian specifically). Needed to use the GPIO pins to manage some relays and solenoids used as button pushing devices for things we aren't allowed tor able o wire into. Lots of mis-information on the 'net, and the common commands like "gpiodetect" don't work. But the classic filesystem methods do. /sys/class/gpio/export etc.. What is nearly impossible to find is what the addresses for the pin outs are. I needed 7. Here they are and what I used. YMMV, This worked for me.
echo 100 >/sys/class/gpio/export echo out >/sys/class/gpio/gpio100/direction echo 1 >/sys/class/gpio/gpio100/value sleep 1 echo 0 >/sys/class/gpio/gpio100/value sleep 1 sleep 1 >/sys/class/gpio/gpio100/value
If you look at the pinout descriptions, these pins are all part of the GPIO3_AX group of GPIO controls. You should be able to poke around and find others. Be wary. For example GPIO 90 will blank your screen and lock the system, at least one number I tried wiped the eMMC and I had to reflash, but I don't know which one..
If you are looking for the actual code I'm using, it's a variation of the "kitty" code I have on GitHub, github.com/mikegeeklabs using these values in settings.php:
$gpios = array(100,102,103,101,97,98,96) ;