Edit

Share via


Ccs811Sensor.SetThreshold(VolumeConcentration, VolumeConcentration) Method

Definition

Set the threshold for the equivalent CO2. The pinInterrupt should be existing so interruptions are activated. If not, then the function will return false

public bool SetThreshold (UnitsNet.VolumeConcentration lowEquivalentCO2, UnitsNet.VolumeConcentration highEquivalentCO2);
member this.SetThreshold : UnitsNet.VolumeConcentration * UnitsNet.VolumeConcentration -> bool
Public Function SetThreshold (lowEquivalentCO2 As VolumeConcentration, highEquivalentCO2 As VolumeConcentration) As Boolean

Parameters

lowEquivalentCO2
UnitsNet.VolumeConcentration

The low value for the threshold

highEquivalentCO2
UnitsNet.VolumeConcentration

The high value for the threshold

Returns

True if success

Remarks

Difference between the low and high value should be more than 50. This is called the hysteresis value.

Applies to