int GetDirectionBit(int port, int bit)
This method retrieves the value of a single bit of a port's direction register. It is provided simply for convenience, since it internally calls the GetDirection Method to determine the value of the specified bit.
port - Specifies the port number (0-5).
bit - Specifies the bit number (0-7) within the port.
This method returns an integer. The return value is the value of the specified direction bit of the specified port. Zero indicates the bit is configured for input and nonzero indicates it is configured for output.