UIO-4031 GPIO:U-DI/DO
From ESS-WIKI
Revision as of 03:26, 20 December 2024 by Xingxing.li (talk | contribs)
UIO-4031 has four DI ports and four DO ports.
Show DI/DO Ports
# #---- Show DI ports ----# # # cd /dev/ # ls DI* DI1 DI2 DI3 DI4 # #---- Show DO ports ----# # # cd /dev/ # ls DO* DO1 DO2 DO3 DO4
Get DI Status
Take DI1 for example
# cat /dev/DI1 1
Note:
0 means the external circuit is NOT conductive.
1 means the external circuit is conductive.