Skip to content

enumerated

Arnd edited this page Dec 12, 2020 · 4 revisions

Enumerated Types

Several enumerated types / constants are declared in the library and can be used as parameters to BME280 functions rather than having to type in the associated number. The types are as follow:

Sensors

The function setOversampling() allows turning off each of the BME680 sensor components individually as well as setting/retrieving the oversampling rates. There are 3 keywords that can be used as parameters: "TemperatureSensor", "HumiditySensor" and "PressureSensor" to indicate which sensor to use.

Oversampling

The function setOversampling() allows oversampling rates to be set for each of the 3 sensing components of the BME280, the keywords that can be used as parameters here are: "SensorOff", "Oversample1", "Oversample2", "Oversample4", "Oversample8" and "Oversample16" to indicate which level of oversampling to use.

IIR Filters

The SetIIRFilter() function allows setting the IIR filter value. The keywords that can be used as parameters here are: "IIROff", "IIR2", "IIR4", "IIR8", "IIR16", "IIR32","IIR64", and "IIR128".