setSampling()
Sets the parameters of the sensor. bpm.setSampling(mode, tempSampling, pressSampling, humSampling, filter, duration)bpm: a variable of type BMP280.
mode: the power mode to use for the sensor.
- BMP280::MODE_SLEEP - Sleep mode.
- BMP280::MODE_FORCED - Forced mode.
- BMP280::MODE_NORMAL - Normal mode - Default.
tempSampling: the temp samping rate to use.
- BMP280::SAMPLING_NONE - No over-sampling.
- BMP280::SAMPLING_X1 - 1x over-sampling.
- BMP280::SAMPLING_X2 - 2x over-sampling.
- BMP280::SAMPLING_X4 - 4x over-sampling.
- BMP280::SAMPLING_X8 - 8x over-sampling.
- BMP280::SAMPLING_X16 - 16x over-sampling - Default.
pressSampling: the pressure sampling rate to use.
- BMP280::SAMPLING_NONE - No over-sampling.
- BMP280::SAMPLING_X1 - 1x over-sampling.
- BMP280::SAMPLING_X2 - 2x over-sampling.
- BMP280::SAMPLING_X4 - 4x over-sampling.
- BMP280::SAMPLING_X8 - 8x over-sampling.
- BMP280::SAMPLING_X16 - 16x over-sampling - Default.
humSampling: the humidity sampling rate to use - taken into account by the software only in the case of a sensor BME280 only.
- BMP280::SAMPLING_NONE - No over-sampling.
- BMP280::SAMPLING_X1 - 1x over-sampling.
- BMP280::SAMPLING_X2 - 2x over-sampling.
- BMP280::SAMPLING_X4 - 4x over-sampling.
- BMP280::SAMPLING_X8 - 8x over-sampling.
- BMP280::SAMPLING_X16 - 16x over-sampling - Default.
filter: Filtering level for sensor data:
- BMP280::FILTER_OFF - No filtering - Default.
- BMP280::FILTER_X2 - 2x filtering.
- BMP280::FILTER_X4 - 4x filtering.
- BMP280::FILTER_X8 - 8x filtering.
- BMP280::FILTER_X16 - 16x filtering.
duration: Standby duration in ms:
- BMP280::STANDBY_MS_0_5 - 0.5 ms standby.
- BMP280::STANDBY_MS_63 - 62.5 ms standby.
- BMP280::STANDBY_MS_125 - 125 ms standby.
- BMP280::STANDBY_MS_250 - 250 ms standby.
- BMP280::STANDBY_MS_500 - 500 ms standby.
- BMP280::STANDBY_MS_1000 - 1000 ms standby - Default.
- BMP280::STANDBY_MS_2000 - 2000 ms standby - BMP280 only.
- BMP280::STANDBY_MS_4000 - 4000 ms standby - BMP280 only.
- BMP280::STANDBY_MS_10 - 10 ms standby - BME280 only.
- BMP280::STANDBY_MS_20 - 20 ms standby - BME280 only.
nothing