This sketch shown how to read a single switch with pull up resistor

Dependencies:   mbed

revision not found: shortlog