SCD30 class

SCD30 CO₂ & Temperature & Humidity Sensor

See for more

Constructors

SCD30(I2C i2c, [int i2cAddress = scd30DefaultI2Caddress])
Creates a SCD30 sensor instance that uses the i2c bus with the optional i2cAddress.

Properties

hashCode → int
The hash code for this object.
no setterinherited
i2c → I2C
final
i2cAddress → int
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

getAltitudeCompensation() → int
Returns the altitude compensation.
getCommandValue(Command command) → int
Returns the value for a Command
getFirmwareVersion() → int
Returns the firmware version.
getForcedRecalibrationFactor() → int
Returns the forced recalibration factor.
getMeasurementInterval() → int
Returns the measurement interval in secounds.
getTemperatureOffset() → int
Returns the temperature offset.
getValues() → SCD30result
Returns a SCD30result with CO₂, temperature, and humidity.
isAutoSelfCalibration() → bool
Returns if auto self calibration is enabled.
isDataAvailable() → bool
Checks if data is available
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readRegister(Command command) → int
Reads a word from a command register.
reset() → void
SCD30 soft reset
sendCommand(Command command, int argument) → void
Sends a command with an argument.
sendCommandNoArg(Command command) → void
setAltitudeCompensation(int altitude) → void
Sets the altitude compensation.
setAmbientPressure(int pressureMillibar) → void
Sets the pressure compenstation. This is passed during measurement startup. pressureMillibar can be 700 to 1200
setAutoSelfCalibration(bool enable) → void
Enables or disables the auto self calibration.
setForcedRecalibrationFactor(int concentration) → void
Sets the forced recalibration factor. See 1.3.7. The reference CO2 concentration has to be within the range 400 ppm ≤ cref(CO2) ≤ 2000 ppm.
setMeasurementInterval(int interval) → void
Sets interval between measurements
setTemperatureOffset(int offset) → void
Sets the temperature offset.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited