Package com.diozero.devices
Class BME680
java.lang.Object
com.diozero.devices.BME680
- All Implemented Interfaces:
DeviceInterface
,BarometerInterface
,HygrometerInterface
,SensorInterface
,ThermometerInterface
,AutoCloseable
@Deprecated public class BME680 extends Object implements BarometerInterface, ThermometerInterface, HygrometerInterface
Deprecated.
Indoor air quality (IAQ) output. In principle, this output is in an index
that can have values between 0 and 500 with a resolution of 1 to indicate or
quantify the quality of the air available in the surrounding.
Operational Range: Temperature: -40C-85C Humidity: 10-95 %r.H. IAQ: 0-500
https://cdn-shop.adafruit.com/product-files/3660/BME680.pdf
https://github.com/BoschSensortec/BME68x-Sensor-API
https://github.com/pimoroni/bme680-python/blob/master/library/bme680/__init__.py
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BME680.Calibration
Deprecated.static class
BME680.Data
Deprecated.static class
BME680.FilterSize
Deprecated.IIR filter size.static class
BME680.GasSettings
Deprecated.static class
BME680.HeaterProfile
Deprecated.Gas heater profile.static class
BME680.OversamplingMultiplier
Deprecated.Oversampling multiplier.static class
BME680.PowerMode
Deprecated.Power mode.static class
BME680.SensorSettings
Deprecated. -
Field Summary
Fields Modifier and Type Field Description static int
DEVICE_ADDRESS
Deprecated.Default I2C address for the sensor. -
Constructor Summary
-
Method Summary
Modifier and Type Method Description void
close()
Deprecated.Close the driver and the underlying device.float
getAirQuality()
Deprecated.BME680.FilterSize
getFilter()
Deprecated.BME680.HeaterProfile
getGasHeaterProfile()
Deprecated.float
getGasResistance()
Deprecated.BME680.OversamplingMultiplier
getHumidityOversample()
Deprecated.BME680.PowerMode
getPowerMode()
Deprecated.float
getPressure()
Deprecated.Get the pressure in kPaBME680.OversamplingMultiplier
getPressureOversample()
Deprecated.float
getRelativeHumidity()
Deprecated.Get the relative humidity in percent.BME680.Data
getSensorData()
Deprecated.float
getTemperature()
Deprecated.Get temperature in degrees celsiusBME680.OversamplingMultiplier
getTemperatureOversample()
Deprecated.boolean
isGasMeasurementEnabled()
Deprecated.boolean
isHeaterEnabled()
Deprecated.void
setFilter(BME680.FilterSize value)
Deprecated.void
setGasConfig(BME680.HeaterProfile profile, int heaterTemperature, int heaterDuration)
Deprecated.void
setGasMeasurementEnabled(boolean gasMeasurementsEnabled)
Deprecated.void
setHeaterEnabled(boolean heaterEnabled)
Deprecated.void
setHumidityOversample(BME680.OversamplingMultiplier value)
Deprecated.void
setPowerMode(BME680.PowerMode value)
Deprecated.void
setPressureOversample(BME680.OversamplingMultiplier value)
Deprecated.void
setSensorSettings(BME680.HeaterProfile heaterProfile, int heaterTemperature, int heaterDuration, BME680.FilterSize filterSize)
Deprecated.void
setTemperatureOffset(int value)
Deprecated.Set temperature offset in celsius.void
setTemperatureOversample(BME680.OversamplingMultiplier value)
Deprecated.
-
Field Details
-
DEVICE_ADDRESS
public static final int DEVICE_ADDRESSDeprecated.Default I2C address for the sensor.- See Also:
- Constant Field Values
-
-
Constructor Details
-
BME680
public BME680()Deprecated. -
BME680
public BME680(int controller)Deprecated.Create a new BME680 sensor driver connected on the given bus.- Parameters:
controller
- I2C bus the sensor is connected to.
-
BME680
public BME680(int controller, int address)Deprecated.Create a new BME680 sensor driver connected on the given bus and address.- Parameters:
controller
- I2C bus the sensor is connected to.address
- I2C address of the sensor.
-
-
Method Details
-
getTemperature
public float getTemperature()Deprecated.Description copied from interface:ThermometerInterface
Get temperature in degrees celsius- Specified by:
getTemperature
in interfaceThermometerInterface
- Returns:
- Temperature (deg C)
-
getPressure
public float getPressure()Deprecated.Description copied from interface:BarometerInterface
Get the pressure in kPa- Specified by:
getPressure
in interfaceBarometerInterface
- Returns:
- pressure in kPa
-
getRelativeHumidity
public float getRelativeHumidity()Deprecated.Description copied from interface:HygrometerInterface
Get the relative humidity in percent.- Specified by:
getRelativeHumidity
in interfaceHygrometerInterface
- Returns:
- The relative humidity in percent.
-
getGasResistance
public float getGasResistance()Deprecated. -
getAirQuality
public float getAirQuality()Deprecated. -
close
public void close()Deprecated.Close the driver and the underlying device.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceDeviceInterface
-
setSensorSettings
public void setSensorSettings(BME680.HeaterProfile heaterProfile, int heaterTemperature, int heaterDuration, BME680.FilterSize filterSize)Deprecated. -
getPowerMode
Deprecated. -
setPowerMode
Deprecated. -
getTemperatureOversample
Deprecated. -
setTemperatureOversample
Deprecated. -
getHumidityOversample
Deprecated. -
setHumidityOversample
Deprecated. -
getPressureOversample
Deprecated. -
setPressureOversample
Deprecated. -
getFilter
Deprecated. -
setFilter
Deprecated. -
setGasConfig
Deprecated. -
getGasHeaterProfile
Deprecated. -
isHeaterEnabled
public boolean isHeaterEnabled()Deprecated. -
setHeaterEnabled
public void setHeaterEnabled(boolean heaterEnabled)Deprecated. -
isGasMeasurementEnabled
public boolean isGasMeasurementEnabled()Deprecated. -
setGasMeasurementEnabled
public void setGasMeasurementEnabled(boolean gasMeasurementsEnabled)Deprecated. -
setTemperatureOffset
public void setTemperatureOffset(int value)Deprecated.Set temperature offset in celsius. If set, the temperature t_fine will be increased by given value in celsius.- Parameters:
value
- temperature offset in Celsius, eg. 4, -8, 1.25
-
getSensorData
Deprecated.
-
BME68x
instead