Apex Dual Orin Digital Input Usage#
Hardware Connection#
Function Label
Pin Label
Hardware Specification#
Vin Voltage Range |
Result |
---|---|
6~48V |
High Level=1 |
0~3V |
Low Level=0 |
3~6V |
Not supported. |
> 48V or < 0 V |
Not supported and may damage hardware. |
Function and Device Node#
Function |
Device Node |
---|---|
M_DI_0 |
/dev/gpio/di0 |
M_DI_1 |
/dev/gpio/di1 |
M_DI_2 |
/dev/gpio/di2 |
M_DI_3 |
/dev/gpio/di3 |
Usage#
The example of using the GPIO interface is as follows.
# switch to root
sudo su -
# Read Data(DI)
cat /sys/class/gpio/<device node name>/value
# Example: cat /sys/class/gpio/gpio339/value