ESPHome  2022.6.2
bmp085.h
Go to the documentation of this file.
1 #pragma once
2 
6 
7 namespace esphome {
8 namespace bmp085 {
9 
11  public:
14 
16  void update() override;
18  void setup() override;
19  void dump_config() override;
20 
21  float get_setup_priority() const override;
22 
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  };
31 
33  void read_temperature_();
35  void read_pressure_();
36 
37  bool set_mode_(uint8_t mode);
38 
42 };
43 
44 } // namespace bmp085
45 } // namespace esphome
float pressure
Definition: qmp6988.h:72
BedjetMode mode
BedJet operating mode.
Definition: bedjet_base.h:102
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:266
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
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
Definition: a4988.cpp:4
Base-class for all sensors.
Definition: sensor.h:47
void read_pressure_()
Internal method to read the pressure from the component after it has been scheduled.
Definition: bmp085.cpp:91
void read_temperature_()
Internal method to read the temperature from the component after it has been scheduled.
Definition: bmp085.cpp:55