Qwiic_BME280_Py
Python for SFE Qwiic BME280
|
Public Member Functions | |
def | __init__ (self, address=None, i2c_driver=None) |
def | is_connected (self) |
Determine if a BME280 device is conntected to the system. More... | |
def | begin (self) |
Initialize the operation of the BME280 module. More... | |
def | set_mode (self, mode) |
Set the operational mode of the sensor. More... | |
def | get_mode (self) |
Returns the operational mode of the sensor. More... | |
def | set_standby_time (self, timeSetting) |
Set the standby bits in the BME280s config register. More... | |
def | set_filter (self, filterSetting) |
Set the filter bits in the BME280s config register. More... | |
def | set_tempature_oversample (self, overSampleAmount) |
Set the temperature oversample value. More... | |
def | set_pressure_oversample (self, overSampleAmount) |
Set the pressure oversample value. More... | |
def | set_humidity_oversample (self, overSampleAmount) |
Set the humidity oversample value. More... | |
def | check_sample_value (self, userValue) |
Validates an over sample value. More... | |
def | is_measuring (self) |
Return if the sensor is measuring or not. More... | |
def | reset (self) |
Resets the sensor. More... | |
def | read_pressure (self) |
Returns pressure in Pa. More... | |
def | set_reference_pressure (self, refPressure) |
Sets the referance pressure for the sensor measurments. More... | |
def | get_reference_pressure (self) |
Get the current reference pressure for the sensor. More... | |
def | get_altitude_meters (self) |
Return the current Altitude in meters. More... | |
def | get_altitude_feet (self) |
Return the current Altitude in feet. More... | |
def | read_humidity (self) |
Returns humidity in RH. More... | |
def | get_temperature_celsius (self) |
Returns temperature in DegC and updates t_fine (needed for accurate pressure and humidity measurements) More... | |
def | get_temperature_fahrenheit (self) |
Returns temperature in Deg F and updates t_fine (needed for accurate pressure and humidity measurements) More... | |
def | get_dewpoint_celsius (self) |
Returns the Dew point in degrees C. More... | |
def | get_dewpoint_fahrenheit (self) |
Returns the Dew point in degrees F. More... | |
Public Attributes | |
address | |
calibration | |
t_fine | |
Properties | |
connected = property(is_connected) | |
mode = property(get_mode, set_mode) | |
standby_time = property() | |
filter = property() | |
tempature_oversample = property() | |
pressure_oversample = property() | |
humidity_oversample = property() | |
pressure = property(read_pressure) | |
reference_pressure = property(get_reference_pressure, set_reference_pressure) | |
altitude_meters = property(get_altitude_meters) | |
altitude_feet = property(get_altitude_feet) | |
humidity = property(read_humidity) | |
temperature_celsius = property(get_temperature_celsius) | |
temperature_fahrenheit = property(get_temperature_fahrenheit) | |
dewpoint_celsius = property(get_dewpoint_celsius) | |
dewpoint_fahrenheit = property(get_dewpoint_fahrenheit) | |
address | The I2C address to use for the device. If not provided, the default address is used. |
i2c_driver | An existing i2c driver object. If not provided a driver object is created. |
def qwiic_bme280.QwiicBme280.__init__ | ( | self, | |
address = None , |
|||
i2c_driver = None |
|||
) |
def qwiic_bme280.QwiicBme280.begin | ( | self | ) |
Initialize the operation of the BME280 module.
def qwiic_bme280.QwiicBme280.check_sample_value | ( | self, | |
userValue | |||
) |
Validates an over sample value.
userValue | The oversample value to check. Allowed values are 0 to 16 These are used in the humidty, pressure, and temp oversample functions |
def qwiic_bme280.QwiicBme280.get_altitude_feet | ( | self | ) |
Return the current Altitude in feet.
def qwiic_bme280.QwiicBme280.get_altitude_meters | ( | self | ) |
Return the current Altitude in meters.
def qwiic_bme280.QwiicBme280.get_dewpoint_celsius | ( | self | ) |
Returns the Dew point in degrees C.
def qwiic_bme280.QwiicBme280.get_dewpoint_fahrenheit | ( | self | ) |
Returns the Dew point in degrees F.
def qwiic_bme280.QwiicBme280.get_mode | ( | self | ) |
Returns the operational mode of the sensor.
def qwiic_bme280.QwiicBme280.get_reference_pressure | ( | self | ) |
Get the current reference pressure for the sensor.
def qwiic_bme280.QwiicBme280.get_temperature_celsius | ( | self | ) |
Returns temperature in DegC and updates t_fine (needed for accurate pressure and humidity measurements)
def qwiic_bme280.QwiicBme280.get_temperature_fahrenheit | ( | self | ) |
Returns temperature in Deg F and updates t_fine (needed for accurate pressure and humidity measurements)
def qwiic_bme280.QwiicBme280.is_connected | ( | self | ) |
Determine if a BME280 device is conntected to the system.
def qwiic_bme280.QwiicBme280.is_measuring | ( | self | ) |
Return if the sensor is measuring or not.
def qwiic_bme280.QwiicBme280.read_humidity | ( | self | ) |
Returns humidity in RH.
def qwiic_bme280.QwiicBme280.read_pressure | ( | self | ) |
Returns pressure in Pa.
def qwiic_bme280.QwiicBme280.reset | ( | self | ) |
Resets the sensor.
If called, the begin method must be called before using the sensor.
def qwiic_bme280.QwiicBme280.set_filter | ( | self, | |
filterSetting | |||
) |
Set the filter bits in the BME280s config register.
filterSetting | The filter bits for the BME280. Acceptable values 0 = filter off 1 = coefficients = 2 2 = coefficients = 4 3 = coefficients = 8 4 = coefficients = 16 |
def qwiic_bme280.QwiicBme280.set_humidity_oversample | ( | self, | |
overSampleAmount | |||
) |
Set the humidity oversample value.
overSampleAmount | The humidity oversample value. Acceptable values 0 = turns off humidity sensing 1 to 16 are valid over sampling values |
def qwiic_bme280.QwiicBme280.set_mode | ( | self, | |
mode | |||
) |
Set the operational mode of the sensor.
mode | One of the class constant values. MODE_SLEEP, MODE_FORCED, MODE_NORMAL |
def qwiic_bme280.QwiicBme280.set_pressure_oversample | ( | self, | |
overSampleAmount | |||
) |
Set the pressure oversample value.
overSampleAmount | The pressure oversample value. Acceptable values 0 = turns off pressure sensing 1 to 16 are valid over sampling values |
def qwiic_bme280.QwiicBme280.set_reference_pressure | ( | self, | |
refPressure | |||
) |
Sets the referance pressure for the sensor measurments.
refPressure | The referance pressure to use. |
def qwiic_bme280.QwiicBme280.set_standby_time | ( | self, | |
timeSetting | |||
) |
Set the standby bits in the BME280s config register.
timeSetting | The standby time bits - acceptable values 0 = 0.5ms 1 = 62.5ms 2 = 125ms 3 = 250ms 4 = 500ms 5 = 1000ms 6 = 10ms 7 = 20ms |
def qwiic_bme280.QwiicBme280.set_tempature_oversample | ( | self, | |
overSampleAmount | |||
) |
Set the temperature oversample value.
overSampleAmount | The temperature oversample value. Acceptable values 0 = turns off temp sensing 1 to 16 are valid over sampling values |
qwiic_bme280.QwiicBme280.address |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
qwiic_bme280.QwiicBme280.calibration |
|
static |
|
static |
|
static |
|
static |
qwiic_bme280.QwiicBme280.t_fine |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |