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.
Dependents: BLE_file_test BLE_Blink ExternalEncoder
BatteryLevel Class Reference
[Drivers]
An analog input, used for reading the voltage on a pin. More...
#include <AnalogIn.h>
Detailed Description
An analog input, used for reading the voltage on a pin.
Synchronization level: Thread safe
Example:
// Print messages when the AnalogIn is greater than 50% #include "mbed.h" AnalogIn temperature(p20); int main() { while(1) { if(temperature > 0.5) { printf("Too hot! (%f)", temperature.read()); } } }
Definition at line 54 of file AnalogIn.h.
Generated on Tue Jul 12 2022 15:21:03 by
