41
RSB-4710 User Manual
C
ha
pte
r 3
So
ftw
are
F
un
ctio
na
lity
Set GPIO value 0/1 if GPIO pin define is output.
Used as IRQ signal.
Note: You have to configure GPIO to input.
Unexport GPIO1.
GPIO 1 and GPIO 2 are taken as an example:
Connect GPIO 1 and GPIO 2.
Export GPIO 1 and GPIO 2.
Set GPIO 1 to output.
Set GPIO 2 to input.
Change GPIO 1 to 1 and read GPIO 2 value.
Change GPIO 1 to 0 and read GPIO 2 value.
$ echo 1 > /sys/class/gpio/gpio72/value
$ echo "rising" > /sys/class/gpio/gpio72/edge
NOTE: rising: Trigger on rising edge
falling: Trigger on falling edge
both: Trigger on both edges
none: Disable interrupt on both edges
$ echo 72 > /sys/class/gpio/unexport
$ echo 72 > /sys/class/gpio/export
$ echo 50 > /sys/class/gpio/export
$ echo "out" > /sys/class/gpio/gpio72/direction
$ echo "in" > /sys/class/gpio/gpio50/direction
$ echo 1 > /sys/class/gpio/gpio72/value
$ cat /sys/class/gpio/gpio50/value
1
echo 0 > /sys/class/gpio/gpio72/value
$ cat /sys/class/gpio/gpio50/value
0
Summary of Contents for RSB-4710
Page 1: ...User Manual RSB 4710 3 5 Single Board Computer with Rockchip Arm Cortex A72 Processor ...
Page 6: ...RSB 4710 User Manual vi ...
Page 15: ...7 RSB 4710 User Manual Chapter 2 Hardware Installation 2 2 Board Dimensions ...
Page 44: ...RSB 4710 User Manual 36 ...
Page 45: ...Chapter 3 3 Software Functionality This chapter details software functions on RSB 4710 ...
Page 56: ...RSB 4710 User Manual 48 4 Input the password 5 Wi Fi connected ...
Page 69: ...61 RSB 4710 User Manual Chapter 4 Advantech Services ...