
Chapter 3 – Gateway Setup and Configuration
25
IO
T G
at
eway
S
ystem
SRG
-IMX8
P
3.3
I/O Management
This section will show you how to operate the I/O function.
Control GPIO
Command:
gpionum: 85
Set GPIO direction:
E.g.
echo 85 > /sys/class/gpio/export
echo "out" > /sys/class/gpio/gpio85/direction
Set GPIO ON:
E.g.
echo 1 > /sys/class/gpio/gpio85/value
Set GPIO OFF:
E.g.
echo 0 > /sys/class/gpio/gpio85/value
When successful, output will display as below.
Summary of Contents for SRG-IMX8P
Page 1: ...SRG IMX8P IOT Gateway System User s Manual 1st Ed...
Page 13: ...IOT Gateway System SRG IMX8P Chapter 1 Chapter 1 Product Specifications...
Page 16: ...IOT Gateway System SRG IMX8P Chapter 2 Chapter 2 Hardware Information...
Page 17: ...Chapter 2 Hardware Information 5 IOT Gateway System SRG IMX8P 2 1 Dimensions...
Page 18: ...Chapter 2 Hardware Information 6 IOT Gateway System SRG IMX8P 2 2 I O Location...
Page 31: ...IOT Gateway System SRG IMX8P Chapter 3 Chapter 3 Gateway Setup and Configuration...