In the examples I see (seeedstudio.com/wiki/Grove_-_I2C_ADC) when using the I2CADC:
void init_adc()
{
Wire.beginTransmission(ADDR_ADC121); // transmit to device
Wire.write(REG_ADDR_CONFIG); // Configuration Register
Wire.write(0x20);
Wire.endTransmission();
}
And:
class I2cAdc:
def __init__(self):
i2c.write8(REG_ADDR_CONFIG, 0x20)
…why is 0x20 always written to the config register? What does that do?