mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-09-01 20:39:04 +00:00
scd30: add CO2 sensor driver
This commit is contained in:
committed by
Ron Evans
parent
119afb933c
commit
6791c13a1e
@@ -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
|
||||
)
|
||||
Reference in New Issue
Block a user