scd30: add CO2 sensor driver

This commit is contained in:
Andre Courchesne
2026-08-04 13:26:31 -07:00
committed by Ron Evans
parent 119afb933c
commit 6791c13a1e
5 changed files with 650 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
package scd30
const (
// Address is the default and only I2C address of the SCD30.
Address uint16 = 0x61
commandStartContinuousMeasurement = 0x0010
commandStopContinuousMeasurement = 0x0104
commandDataReady = 0x0202
commandReadMeasurement = 0x0300
commandSetMeasurementInterval = 0x4600
commandSetAutoCalibration = 0x5306
)
const (
minimumMeasurementInterval = 2
maximumMeasurementInterval = 1800
minimumAmbientPressure = 700
maximumAmbientPressure = 1400
)