int InputBit(int port, int bit)
This method retrieves the value of a single bit within a digital I/O port. It is provided simply for convenience, since it internally calls the InputByte Method to determine the value of the specified bit.
This method returns an integer. The return value is the current value (0 or 1) of the specified bit.