Class: Denko::Sensor::BMP280

Inherits:
BME280
  • Object
show all
Defined in:
lib/denko/sensor/bme280.rb

Overview

BMP280 is mostly compatible with BME280, except for a few changes.

Constant Summary collapse

STANDBY_TIMES =

Last 2 standby times are different for the BMP280 vs BME280.

{
  0.5  => 0b000,
  62.5 => 0b001,
  125  => 0b010,
  250  => 0b011,
  500  => 0b100,
  1000 => 0b101,
  2000 => 0b110,
  4000 => 0b111,
}

Constants inherited from BME280

Denko::Sensor::BME280::CONTINUOUS_MODE, Denko::Sensor::BME280::IIR_COEFFICIENTS, Denko::Sensor::BME280::ONESHOT_MODE, Denko::Sensor::BME280::OVERSAMPLE_FACTORS, Denko::Sensor::BME280::SLEEP_MODE

Instance Attribute Summary

Attributes inherited from BME280

#calibration_data_loaded, #measurement_time

Attributes included from Behaviors::Threaded

#interrupts_enabled, #thread

Attributes included from Behaviors::Callbacks

#callback_mutex

Attributes included from I2C::Peripheral

#i2c_frequency, #i2c_repeated_start

Attributes included from Behaviors::BusPeripheral

#address

Attributes included from Behaviors::Component

#board

Method Summary

Methods inherited from BME280

#[], #_read, #after_initialize, #before_initialize, #config_register_bits, #continuous_mode, #decode_humidity, #decode_pressure, #decode_reading, #decode_temperature, #get_calibration_data, #humidity_available?, #humidity_samples=, #iir_coefficient=, #oneshot_mode, #pre_callback_filter, #pressure_samples=, #process_calibration_a, #process_calibration_b, #reading_humidity?, #reading_pressure?, #standby_time=, #temperature_samples=, #update_measurement_time, #update_state, #write_settings

Methods included from Behaviors::Poller

#poll, #poll_using, #stop

Methods included from Behaviors::Threaded

#enable_interrupts, included, #stop, #stop_thread, #threaded, #threaded_loop

Methods included from Behaviors::Reader

#_read, #read, #read_using, #wait_for_read

Methods included from Behaviors::Callbacks

#add_callback, #callbacks, #initialize, #pre_callback_filter, #remove_callback, #update

Methods included from Behaviors::State

#initialize, #state

Methods included from I2C::Peripheral

#before_initialize, #i2c_read, #i2c_write

Methods included from Behaviors::BusPeripheralAddressed

#before_initialize

Methods included from Behaviors::BusPeripheral

#atomically, #before_initialize

Methods included from Behaviors::Component

#initialize, #micro_delay