Skip to main content
Skip table of contents

BitDirRead: IOType=12

BitDirRead, 2 Command Bytes: 

0

IOType=12

1

Bits 0-4: IONumber

 

 

1 Response Byte: 

0

Bit 0: Direction

This IOType reads the direction of a single bit of digital I/O. This is the digital direction only, and does not provide any information as to whether the line is configured as digital or analog.

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

  • Direction: 1=Output, 0=Input.

Example

PY
import u3
d = u3.U3()
d.debug = True
d.getFeedback(u3.BitDirRead(IONumber = 5))
# Sent:  [0xc, 0xf8, 0x2, 0x0, 0x11, 0x0, 0x0, 0xc, 0x5, 0x0]
# Response:  [0xfb, 0xf8, 0x2, 0x0, 0x1, 0x0, 0x0, 0x0, 0x0, 0x1]
# [1]
JavaScript errors detected

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

If this problem persists, please contact our support.