Closed alexmstahl closed 4 years ago
1) bitmasks ADC_MASK and READ_ADC_MASK are incorrectly defined. They are defined as 0x3F and 0xC0. They should be 0x9F and 0x60.
2)in the function setAdcRange, there is a missing bit shift: the line regVal |= adcVal; should be regVal |= (bits << 5);
Absolutely right, fixed here!
1) bitmasks ADC_MASK and READ_ADC_MASK are incorrectly defined. They are defined as 0x3F and 0xC0. They should be 0x9F and 0x60.
2)in the function setAdcRange, there is a missing bit shift: the line regVal |= adcVal; should be regVal |= (bits << 5);