ESPHome 2026.6.0-dev
Loading...
Searching...
No Matches
bmp085.h
Go to the documentation of this file.
1#pragma once
2
6
7namespace esphome::bmp085 {
8
10 public:
13
15 void update() override;
17 void setup() override;
18 void dump_config() override;
19
20 protected:
22 int16_t ac1, ac2, ac3;
23 uint16_t ac4, ac5, ac6;
24 int16_t b1, b2;
25 int16_t mb, mc, md;
26 float temp;
27 };
28
30 void read_temperature_();
32 void read_pressure_();
33
34 bool set_mode_(uint8_t mode);
35
39};
40
41} // namespace esphome::bmp085
BedjetMode mode
BedJet operating mode.
This class simplifies creating components that periodically check a state.
Definition component.h:585
CalibrationData calibration_
Definition bmp085.h:38
void setup() override
Setup the sensor and test for a connection.
Definition bmp085.cpp:21
void read_pressure_()
Internal method to read the pressure from the component after it has been scheduled.
Definition bmp085.cpp:89
void update() override
Schedule temperature+pressure readings.
Definition bmp085.cpp:15
sensor::Sensor * pressure_
Definition bmp085.h:37
void read_temperature_()
Internal method to read the temperature from the component after it has been scheduled.
Definition bmp085.cpp:53
bool set_mode_(uint8_t mode)
Definition bmp085.cpp:129
void set_pressure(sensor::Sensor *pressure)
Definition bmp085.h:12
void set_temperature(sensor::Sensor *temperature)
Definition bmp085.h:11
sensor::Sensor * temperature_
Definition bmp085.h:36
This Class provides the methods to read/write bytes from/to an i2c device.
Definition i2c.h:132
Base-class for all sensors.
Definition sensor.h:47
uint16_t temperature
Definition sun_gtil2.cpp:12
uint8_t pressure
Definition tt21100.cpp:7