BitStateWrite: IOType=11
BitStateWrite, 2 Command Bytes: | |
0 | IOType=11 |
1 | Bits 0-4: IONumber |
| Bit 7: State; |
0 Response Bytes: | |
|
|
This IOType writes the state of a single bit of digital I/O. The direction of the specified line is forced to output.
IO Number: 0-7=FIO, 8-15=EIO, or 16-19=CIO.
State: 1=High, 0=Low.
Example
PY
# BitStateWrite Feedback command
# write a single bit of digital I/O. The direction of the
# specified line is forced to output.
import u3
d = u3.U3()
d.debug = True
d.getFeedback(u3.BitStateWrite(IONumber = 5, State = 0))
# Sent: [0xb, 0xf8, 0x2, 0x0, 0x10, 0x0, 0x0, 0xb, 0x5, 0x0]
# Response: [0xfa, 0xf8, 0x2, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0]
# [None]