Open brentru opened 1 year ago
Just food for thought: Some sensors want a continuously updated reference value. e.g. the SGP30 assumes 25degrees centigrade and 50% humidity, but it accepts (and prefers) a continuously updated reference value (of absolute humidity). This will massively affect accuracy. I'm not sure it would make sense to presume that all attached sensors are in the same micro-climate, so we probably can't just use the first/any sensor temp+humidity value to calculate absolute humidity.
Also the interrupt pins for certain sensors, e.g. a proximity that has supported thresholds and then triggers an interrupt once the desired conditions are met. LTR-303 is a light/IR sensor for example with modifiable gain, integration time, measurement time, and high/low thresholds for an interrupt pin.
Currently, we only support initializing the polling interval of an I2C component. However, some I2C components have extra parameters which may influence sensor readings.
Examples:
tsl.setGain(TSL2591_GAIN_MED)
) during runtime as well as the integration time * The BME680 driver exposes sampling, altitude configuration, and filtering initialization functions. * The LC709203 driver exposes functions such aslc.setPackSize(LC709203F_APA_500MAH);
to set the LiPo battery pack size.