Skip to main content
Skip table of contents

BitDirWrite: IOType=13

BitDirWrite, 2 Command Bytes: 




Bits 0-4: IONumber


Bit 7: Direction

0 Response Bytes: 



This IOType writes the direction of a single bit of digital I/O.

  • IO Number: 0-7=FIO, 8-15=EIO, or 16-19=CIO.

  • Direction: 1=Output, 0=Input.


# BitDirWrite Feedback command
# Set the digital direction of one I/O

import u3
d = u3.U3()
d.debug = True
d.getFeedback(u3.BitDirWrite(IONumber = 5, Direction = 0))
# Sent:  [0xd, 0xf8, 0x2, 0x0, 0x12, 0x0, 0x0, 0xd, 0x5, 0x0]
# Response:  [0xfa, 0xf8, 0x2, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0]
# [None]
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.