|
upm
0.4.0
Sensor/Actuator repository for libmraa (v0.8.0)
|
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 |
||
| ) |
1.8.9.1