Blinkinlabs / JTAG_hat

117 stars 13 forks source link

GPIO instructions are out of date for modern Raspbian #3

Open cibomahto opened 2 months ago

cibomahto commented 2 months ago

With recent Linux kernels, the GPIO numbering scheme has changed. The documentation should be updated.

This is an example of how to find the correct GPIO to turn on target power on a Rasbperry Pi 4:

cat /sys/kernel/debug/gpio

echo 525 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio525/direction
echo 1 > /sys/class/gpio/gpio525/value