ESPHome  2024.3.2
Go to the documentation of this file.
1 #pragma once
7 namespace esphome {
8 namespace bmp085 {
11  public:
16  void update() override;
18  void setup() override;
19  void dump_config() override;
21  float get_setup_priority() const override;
23  protected:
24  struct CalibrationData {
25  int16_t ac1, ac2, ac3;
26  uint16_t ac4, ac5, ac6;
27  int16_t b1, b2;
28  int16_t mb, mc, md;
29  float temp;
30  };
33  void read_temperature_();
35  void read_pressure_();
37  bool set_mode_(uint8_t mode);
42 };
44 } // namespace bmp085
45 } // namespace esphome
uint8_t pressure
Definition: tt21100.cpp:19
sensor::Sensor * temperature_
Definition: bmp085.h:39
void setup() override
Setup the sensor and test for a connection.
Definition: bmp085.cpp:22
void set_pressure(sensor::Sensor *pressure)
Definition: bmp085.h:13
CalibrationData calibration_
Definition: bmp085.h:41
float temperature
Definition: qmp6988.h:71
This class simplifies creating components that periodically check a state.
Definition: component.h:283
void update() override
Schedule temperature+pressure readings.
Definition: bmp085.cpp:16
sensor::Sensor * pressure_
Definition: bmp085.h:40
void dump_config() override
Definition: bmp085.cpp:43
BedjetMode mode
BedJet operating mode.
Definition: bedjet_codec.h:151
void set_temperature(sensor::Sensor *temperature)
Definition: bmp085.h:12
bool set_mode_(uint8_t mode)
Definition: bmp085.cpp:131
float get_setup_priority() const override
Definition: bmp085.cpp:135
This is a workaround until we can figure out a way to get the tflite-micro idf component code availab...
Definition: a01nyub.cpp:7
Base-class for all sensors.
Definition: sensor.h:57
void read_pressure_()
Internal method to read the pressure from the component after it has been scheduled.
Definition: bmp085.cpp:91
This Class provides the methods to read/write bytes from/to an i2c device.
Definition: i2c.h:133
void read_temperature_()
Internal method to read the temperature from the component after it has been scheduled.
Definition: bmp085.cpp:55