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

Dependencies:   mbed

Wiki pages

Sort by: Score, Alphabetical, Date