mbed-drivers
|
#include <AnalogIn.h>
Public Member Functions | |
AnalogIn (PinName pin) | |
float | read () |
unsigned short | read_u16 () |
operator float () | |
Protected Attributes | |
analogin_t | _adc |
An analog input, used for reading the voltage on a pin
Example:
|
inline |
|
inline |
|
inline |
Read the input voltage, represented as a float in the range [0.0, 1.0]
|
inline |
Read the input voltage, represented as an unsigned short in the range [0x0, 0xFFFF]