MS5611 Atmospheric Pressure Sensor

See Application::make_ms5611_sensor().

API Reference

class MS5611Component : public PollingComponent, public I2CDevice

Public Functions

MS5611Component(I2CComponent *parent, const std::string &temperature_name, const std::string &pressure_name, uint32_t update_interval = 15000)
void setup()

Where the component’s initialization should happen.

Analogous to Arduino’s setup(). This method is guaranteed to only be called once. Defaults to doing nothing.

void dump_config()
float get_setup_priority() const

priority of setup().

higher -> executed earlier

Defaults to 0.

Return
The setup priority of this component

void update()
MS5611TemperatureSensor *get_temperature_sensor() const
MS5611PressureSensor *get_pressure_sensor() const

Protected Functions

void read_temperature_()
void read_pressure_(uint32_t raw_temperature)
void calculate_values(uint32_t raw_temperature, uint32_t raw_pressure)

Protected Attributes

MS5611TemperatureSensor *temperature_sensor_
MS5611PressureSensor *pressure_sensor_
uint16_t prom[6]
using sensor::MS5611TemperatureSensor = typedef sensor::EmptyPollingParentSensor<1, ICON_EMPTY, UNIT_C>
using sensor::MS5611PressureSensor = typedef sensor::EmptyPollingParentSensor<1, ICON_GAUGE, UNIT_HPA>