Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Homepage
Use¶
The AnalogIn API is useful for checking the level of an analog input. The value read from the input is between 0.000 and 1.000 . This number represents a percentage of the input reference voltage. For example, a reading of 0.3 with an input voltage of 3.3V would mean the input is 30% of 3.3V or 0.99V . If in the input was 5V then a reading of 0.3 would mean 0.3*5=1.5V .
API¶
API reference.