The following information is for the EMANT380
Learn:
This program reads the digital input state.
The ReadDigitalBit method returns a boolean value reflecting the switch status (True/False). As the switch is normally open and there is a pull up resistor on the digital input, a True will represent an unpressed switch.