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

Dependencies:   mbed

Revision graph

The revision graph only works with JavaScript-enabled browsers.