TS-7180 DIO
From embeddedTS Manuals
The TS-7180 provides seven IO ports that can sink up to 500mA, or withstand up to 30V at the input. These are available on the P3 connector. DIO_1 through DIO_7 appear as GPIO #37 through #43 (when used as inputs), and as GPIO #22 through #28 (when used as outputs). For example, to read the state of DIO_1, enter the following command:
tshwctl -a 37 -r
Bit #2 will reflect the state of the pin.
To drive DIO_1 low, enter the following command:
tshwctl -a 22 -w 3
|