ESPHome 2026.3.0-dev
Loading...
Searching...
No Matches
bmp085.h
Go to the documentation of this file.
1#pragma once
2
6
7namespace esphome {
8namespace bmp085 {
9
11 public:
14
16 void update() override;
18 void setup() override;
19 void dump_config() override;
20
21 protected:
23 int16_t ac1, ac2, ac3;
24 uint16_t ac4, ac5, ac6;
25 int16_t b1, b2;
26 int16_t mb, mc, md;
27 float temp;
28 };
29
31 void read_temperature_();
33 void read_pressure_();
34
35 bool set_mode_(uint8_t mode);
36
40};
41
42} // namespace bmp085
43} // namespace esphome
BedjetMode mode
BedJet operating mode.
This class simplifies creating components that periodically check a state.
Definition component.h:527
CalibrationData calibration_
Definition bmp085.h:39
void setup() override
Setup the sensor and test for a connection.
Definition bmp085.cpp:22
void read_pressure_()
Internal method to read the pressure from the component after it has been scheduled.
Definition bmp085.cpp:90
void update() override
Schedule temperature+pressure readings.
Definition bmp085.cpp:16
sensor::Sensor * pressure_
Definition bmp085.h:38
void read_temperature_()
Internal method to read the temperature from the component after it has been scheduled.
Definition bmp085.cpp:54
bool set_mode_(uint8_t mode)
Definition bmp085.cpp:130
void set_pressure(sensor::Sensor *pressure)
Definition bmp085.h:13
void set_temperature(sensor::Sensor *temperature)
Definition bmp085.h:12
sensor::Sensor * temperature_
Definition bmp085.h:37
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
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7
uint16_t temperature
Definition sun_gtil2.cpp:12
uint8_t pressure
Definition tt21100.cpp:7