ESPHome 2026.11.0b6
Loading...
Searching...
No Matches
lps22.h
Go to the documentation of this file.
1#pragma once
2
6
7namespace esphome::lps22 {
8
9class LPS22Component final : public sensor::Sensor, public PollingComponent, public i2c::I2CDevice {
10 SUB_SENSOR(temperature)
11 SUB_SENSOR(pressure)
12
13 public:
14 void setup() override;
15 void update() override;
16 void dump_config() override;
17
18 protected:
19 void try_read_();
20
22};
23
24} // namespace esphome::lps22
virtual void setup()
Where the component's initialization should happen.
Definition component.cpp:84
This class simplifies creating components that periodically check a state.
Definition component.h:532
This Class provides the methods to read/write bytes from/to an i2c device.
Definition i2c.h:144
Base-class for all sensors.
Definition sensor.h:48
uint16_t temperature
Definition sun_gtil2.cpp:12
uint8_t pressure
Definition tt21100.cpp:7