Change the world

The ARMmbed class that will be used in this section is:

  • AnalogIn  - Read an external voltage applied to an analog input pin

Further documentation on this class can be found on the ARMmbed Handbook webpage (


Some of the examples might make use of the Serial Wire Viewer, so make sure to import the SWO library correctly as described on the Serial Wire Viewer example page.

The following example programs will demonstrate the principles of basic analog input: