Closed AlbertoZandara closed 2 years ago
yes it is..
actually, in this library I set the ADC to continuous mode every 1sec by default.
you can see on the code
void setADC_enabled(void) { byte data = read(REG::ADCCTRL); data |= (1UL << (7)); // start A/D convertion data |= (1UL << 6); // set continuous convertion write(REG::ADC_CTRL, data); } you need to clear bit no. 6 of register Reg02 so replace it with data &= ~(1UL << 6);
and you need to call properties and wait after it about 1sec to get the ADC values.
I will update it soon
Thank you :)
Is it possible to turn off the ADC to save power with this library?