upm
0.5.1
Sensor/Actuator repository for libmraa (v0.9.1)
|
API for the Grove Voltage Divider Sensor. More...
UPM module for the Grove Voltage Divider sensor
Public Member Functions | |
GroveVDiv (int pin) | |
~GroveVDiv () | |
unsigned int | value (unsigned int samples) |
float | computedValue (uint8_t gain, unsigned int val, int vref=GROVEVDIV_VREF, int res=GROVEVDIV_ADC_RES) |
unsigned int value | ( | unsigned int | samples | ) |
Gets the conversion value from the sensor
samples | Specifies how many samples to average over |
float computedValue | ( | uint8_t | gain, |
unsigned int | val, | ||
int | vref = GROVEVDIV_VREF , |
||
int | res = GROVEVDIV_ADC_RES |
||
) |