…creasing resolution until the returned value is within range.
If the light level is within the range supported by the old code, then the values returned will be the same. If the light level is higher, then getchannels() will take longer to run (because it tries up to four different combinations of gain and integration time until it finds one that is within range), and return larger values.
Even with this change, in full sun the values can still hit a maximum value.
…creasing resolution until the returned value is within range.
If the light level is within the range supported by the old code, then the values returned will be the same. If the light level is higher, then getchannels() will take longer to run (because it tries up to four different combinations of gain and integration time until it finds one that is within range), and return larger values.
Even with this change, in full sun the values can still hit a maximum value.