[BPi R4] gpio pin help

I’m wanting to make a switch that will run a command. Can’t find much info on the gpio for the R4. Any help would be appreciated.

You can follow the same instructions as on the BPI-R3, it works great on the R4 too - on both the official Sinovoip images and on the snapshot from the OpenWrt GitHub. :slightly_smiling_face:

GPI-R3 GPIO

For example: if you want to change gpio 22 as out highlevel, you need input commands like this:

  • echo 433(22+411) > /sys/class/gpio/export
  • echo out > /sys/class/gpio/gpio433/direction
  • echo 1 > /sys/class/gpio/gpio433/value
1 Like