23 i2c_bus_.begin(sda_pin, scl_pin);
24 ads_.begin(addr, &i2c_bus_);
36 return ads_.readADC_SingleEnded((int16_t)ch);
void begin(int addr, int sda_pin, int scl_pin)
float read_voltage(ADCChannel ch)
Read voltage from ADC channel (computes voltage using the set fixed gain)
int16_t read(ADCChannel ch)
Read ADC value from channel.