![Nexcom EBC-3A1 Series User Manual Download Page 35](http://html.mh-extra.com/html/nexcom/ebc-3a1-series/ebc-3a1-series_user-manual_1681443035.webp)
35
GPIO Example
Example Code:
http://github.com/embux/Example/tree/master/gpio_test
Example Commands:
#1: GPIO_00 port sets to
output
and
high
voltage
.
root@ICM-3011:~# echo "out" > /sys/class/gpio/gpio00/direction
root@ICM-3011:~# echo "1" > /sys/class/gpio/gpio00/value
#2: GPIO_01 port sets to
input
.
root@ICM-3011:~# echo "in" > /sys/class/gpio/gpio01/direction
root@ICM-3011:~# cat /sys/class/gpio/gpio01/value
1
Note: All GPIO ports are floating. If user would like to use input mode, please
add external pull-up or pull-down voltage.
Summary of Contents for EBC-3A1 Series
Page 9: ...9 ...
Page 10: ...10 Chapter 1 Product Overview This chapter provides background information of EBC 3A1 ...
Page 13: ...13 1 3 Block Diagram ...
Page 24: ...24 2 4 Mechanical Drawing ...
Page 25: ...25 Chapter 3 Software User Guide This chapter details the Linux operation on EBC 3A1 ...
Page 65: ...65 Chapter 5 BSP This chapter introduces how to get board BSP board support package ...