setFilter method

void setFilter(
  1. FilterSize filter
)

Sets the IIR filter size.

Optionally remove short term fluctuations from the temperature and pressure readings, increasing their resolution but reducing their bandwidth. Enabling the IIR filter does not slow down the time a reading takes, but will slow down the BME680s response to changes in temperature and pressure.

When the IIR filter is enabled, the temperature and pressure resolution is effectively 20bit. When it is disabled, it is 16bit + oversampling-1 bits.

Implementation

void setFilter(final FilterSize filter) {
  _setRegByte(
      configODRfilterAddress, filterMask, filterPosition, filter.index);

  _sensorSettings.filter = filter;
}