32 #define GROVEVDIV_VREF 4980
35 #define GROVEVDIV_ADC_RES 1024
80 unsigned int value(
unsigned int samples);
92 float computedValue(uint8_t gain,
unsigned int val,
int vref=GROVEVDIV_VREF,
93 int res=GROVEVDIV_ADC_RES);
96 mraa_aio_context m_aio;
unsigned int value(unsigned int samples)
Definition: grovevdiv.cxx:49
float computedValue(uint8_t gain, unsigned int val, int vref=GROVEVDIV_VREF, int res=GROVEVDIV_ADC_RES)
Definition: grovevdiv.cxx:62
GroveVDiv(int pin)
Definition: grovevdiv.cxx:34
~GroveVDiv()
Definition: grovevdiv.cxx:44
API for the Grove Voltage Divider Sensor.
Definition: grovevdiv.h:60