32 #define VDIV_VREF 4980 35 #define VDIV_ADC_RES 1024 81 unsigned int value(
unsigned int samples);
93 float computedValue(uint8_t gain,
unsigned int val,
int vref=VDIV_VREF,
94 int res=VDIV_ADC_RES);
97 mraa_aio_context m_aio;
~VDiv()
Definition: vdiv.cxx:44
float computedValue(uint8_t gain, unsigned int val, int vref=VDIV_VREF, int res=VDIV_ADC_RES)
Definition: vdiv.cxx:63
API for the Voltage Divider Sensor.
Definition: vdiv.hpp:61
C++ API wrapper for the bh1749 driver.
Definition: a110x.hpp:29
VDiv(int pin)
Definition: vdiv.cxx:34
unsigned int value(unsigned int samples)
Definition: vdiv.cxx:49