32 #define GROVEVDIV_VREF 4980 35 #define GROVEVDIV_ADC_RES 1024 82 unsigned int value(
unsigned int samples);
94 float computedValue(uint8_t gain,
unsigned int val,
int vref=GROVEVDIV_VREF,
95 int res=GROVEVDIV_ADC_RES);
98 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:63
GroveVDiv(int pin)
Definition: grovevdiv.cxx:34
C++ API wrapper for the bh1749 driver.
Definition: a110x.hpp:29
~GroveVDiv()
Definition: grovevdiv.cxx:44
API for the Grove Voltage Divider Sensor.
Definition: grovevdiv.hpp:62