wiki:RGM33G

Version 2 (modified by krit, 2 years ago) (diff)

--

RBM 33G

Openwrt GPIO setup

Now first step is making GPIO available in Linux:

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

Attachments (1)

Download all attachments as: .zip