BME280 class

Bosch BME280/BMP280 sensor for temperature, pressure and humidity (BME280 only).

See for more

Constructors

BME280(I2C i2c, [int i2cAddress = bme280DefaultI2Caddress])
Creates a BME280/BMP280 sensor instance that uses the i2c bus with the optional i2cAddress.
BME280.spi(SPI spi)
Creates a BME280/BMP280 sensor instance that uses the spi bus.

Properties

bitOrder BitOrder
Data bit order, depends on the type of the bus - I2C or SPI.
final
hashCode int
The hash code for this object.
no setterinherited
i2cAddress int
I2C sensor address
final
isI2C bool
Sensor uses I2C or SPI bus.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getModel() BME280model
Returns the sensor model.
getValues() BME280result
Returns BME280result with temperature, pressure and humidity (only BME280).
isDataAvailable() bool
Indicates, if data are available.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset() → void
Resets the sensor.
setOperatingModes(OversamplingMultiplier tempOversampling, OversamplingMultiplier pressOversampling, OversamplingMultiplier humOversampling, OperatingMode operatingMode) → void
Sets the oversampling multipliers tempOversampling,pressOversampling,humOversampling and operatingMode.
setStandbyAndFilterModes(StandbyDuration standbyDuration, FilterCoefficient filterCoefficient) → void
Sets the standbyDuration for normal mode and the IIR filterCoefficient.
toString() String
A string representation of this object.
inherited
waitDataAvailable(int interval, int maxIntervals) bool
Waits maxIntervals * interval milliseconds for data to become available.

Operators

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