wiki:RGM33G

RBM 33G

Openwrt GPIO setup, we found GPIO pin 5,6,7,8 to be output as in figure.

Now first step is making GPIO available in OpenWRT:

echo "6" > /sys/class/gpio/export

then you need to decide if it will be input or output, as we will use it as a switch so we need output

echo "out" > /sys/class/gpio/gpio6/direction

and last line turns GPIO on or off with 1 or 0:

echo "1" > /sys/class/gpio/gpio6/value

Last modified 2 years ago Last modified on 10/04/22 06:01:23

Attachments (1)

Download all attachments as: .zip