Reads a digital input port.
Note that for some port types, such as 8255 ports, if the port is configured for DIGITALOUT, this function will provide readback of the last output value.
d_in(board_num, port_type)
board_num (int)
The number associated with the board when it was installed with InstaCal or created with create_daq_device().
port_type (DigitalPortType)
The digital port to read. Some hardware allows readback of the state of the output using this function; refer to board-specific information for support information.