Version 3 (modified by 2 years ago) (diff) | ,
---|
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
Attachments (1)
- image2021-5-28_11-39-20.png (226.9 KB) - added by 2 years ago.
Download all attachments as: .zip