adafruit / Wippersnapper_Protobuf

Protocol buffer messages for Adafruit.io WipperSnapper Beta
MIT License
0 stars 3 forks source link

Support advanced I2C configuration options #126

Open brentru opened 1 year ago

brentru commented 1 year ago

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:

tyeth commented 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.

image
tyeth commented 1 year ago

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.