Simple example showcasing AnalogIn. Applying a voltage across the analog input pin causes the LED to light up. Can be tested with a small wire connected to VCC.
mbed_example
/
AnalogIn_HelloWorld