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::I2C_ADDRESS, Denko::Sensor::BME280::IIR_COEFFICIENTS, Denko::Sensor::BME280::ONESHOT_MODE, Denko::Sensor::BME280::OVERSAMPLE_FACTORS, Denko::Sensor::BME280::SLEEP_MODE

Constants included from Behaviors::Lifecycle

Behaviors::Lifecycle::CALLBACK_METHODS

Constants included from Behaviors::Reader

Behaviors::Reader::READ_WAIT_TIME

Constants included from I2C::Peripheral

I2C::Peripheral::I2C_ADDRESS, I2C::Peripheral::I2C_FREQUENCY, I2C::Peripheral::I2C_REPEATED_START

Instance Attribute Summary

Attributes inherited from BME280

#calibration_data_loaded, #measurement_time

Attributes included from Behaviors::Threaded

#interrupts_enabled, #thread

Attributes included from Behaviors::State

#state

Attributes included from I2C::Peripheral

#i2c_frequency, #i2c_repeated_start

Attributes included from Behaviors::Component

#board, #params

Method Summary

Methods inherited from BME280

#_read, #config_register_bits, #continuous_mode, #decode_humidity, #decode_pressure, #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, #reading_humidity?, #reading_pressure?, #standby_time=, #state, #temperature_samples=, #update_measurement_time, #update_state, #write_settings

Methods included from HumidityHelper

#humidity

Methods included from PressureHelper

#pressure, #pressure_atm, #pressure_bar

Methods included from TemperatureHelper

#temperature, #temperature_f, #temperature_k

Methods included from Behaviors::Lifecycle

included

Methods included from Behaviors::Poller

#poll, #poll_using, #stop

Methods included from Behaviors::Threaded

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

Methods included from Behaviors::Reader

#_read, #read, #read_busy?, #read_nb, #read_raw, #read_using, #update

Methods included from Behaviors::Callbacks

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

Methods included from Behaviors::State

#update_state

Methods included from I2C::Peripheral

#address, #i2c_default, #i2c_read, #i2c_read_raw, #i2c_write

Methods included from Behaviors::BusPeripheralAddressed

#address

Methods included from Behaviors::BusPeripheral

#atomically

Methods included from Behaviors::Component

#initialize, #micro_delay