ESPHome  2024.10.2
xgzp68xx.h
Go to the documentation of this file.
1 #pragma once
2 
6 
7 namespace esphome {
8 namespace xgzp68xx {
9 
11  public:
14  void set_k_value(uint16_t k_value) { this->k_value_ = k_value; }
15 
16  void update() override;
17  void setup() override;
18  void dump_config() override;
19 
20  protected:
22  void read_pressure_();
23  uint16_t k_value_;
24 };
25 
26 } // namespace xgzp68xx
27 } // namespace esphome
uint8_t pressure
Definition: tt21100.cpp:19
This class simplifies creating components that periodically check a state.
Definition: component.h:283
void read_pressure_()
Internal method to read the pressure from the component after it has been scheduled.
uint16_t temperature
Definition: sun_gtil2.cpp:26
SUB_SENSOR(temperature) SUB_SENSOR(pressure) void set_k_value(uint16_t k_value)
Definition: xgzp68xx.h:12
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7
Base-class for all sensors.
Definition: sensor.h:57
This Class provides the methods to read/write bytes from/to an i2c device.
Definition: i2c.h:133