| 
    upm
    1.0.2
    
   Sensor/Actuator repository for libmraa (v1.1.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  | 
        ||
| ) | 
 1.8.6