sparkfun / SparkFun_Bio_Sensor_Hub_Library

25 stars 33 forks source link

problems with ADC Range #4

Closed alexmstahl closed 4 years ago

alexmstahl commented 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);

edspark commented 4 years ago

Absolutely right, fixed here!