Adafruit_AS7341 icon indicating copy to clipboard operation
Adafruit_AS7341 copied to clipboard

added saturation check functions

Open christakahashi opened this issue 3 years ago • 0 comments

Added two functions to check if the last readings were analog or digital saturated. This will help when checking if gains and integration time are appropriate especially if the light source has changed. This should not change how any code already written works. It does add a byte of memory usage and a few cycles when polling for a result. It does not add any additional bus transactions as the flag bits were already being read but not saved or used.

I've done my best to make the code consistent with the rest of the library.

christakahashi avatar Apr 13 '21 04:04 christakahashi