|
VoltageReference
Arduino voltage reference library
|
Public Member Functions | |
| void | begin (uint32_t reference=DEFAULT_REFERENCE_CALIBRATION) |
| void | begin (uint8_t hi, uint8_t mid, uint8_t low) |
| uint16_t | readVcc () |
| uint32_t | calibrate (uint16_t milliVolt) |
| uint16_t | internalValue () |
| void VoltageReference::begin | ( | uint32_t | reference = DEFAULT_REFERENCE_CALIBRATION | ) |
Initializes the library by setting the calibration value for the 1.1V reference either to the provided value or to its default
| void VoltageReference::begin | ( | uint8_t | hi, |
| uint8_t | mid, | ||
| uint8_t | low | ||
| ) |
Initializes the library by setting the calibration value for the 1.1V reference from a three bytes representation
| uint32_t VoltageReference::calibrate | ( | uint16_t | milliVolt | ) |
Returns the calibration value to be used for the specified input voltage
| uint16_t VoltageReference::internalValue | ( | ) |
The calibrated internal reference voltage
| uint16_t VoltageReference::readVcc | ( | ) |
Reads the input voltage value applying any necessary calibration