ESPHome 2025.5.2
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
xgzp68xx.h
Go to the documentation of this file.
1#pragma once
2
6
7namespace esphome {
8namespace 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:
23 uint16_t k_value_;
24};
25
26} // namespace xgzp68xx
27} // namespace esphome
This class simplifies creating components that periodically check a state.
Definition component.h:301
This Class provides the methods to read/write bytes from/to an i2c device.
Definition i2c.h:133
Base-class for all sensors.
Definition sensor.h:57
void read_pressure_()
Internal method to read the pressure from the component after it has been scheduled.
SUB_SENSOR(temperature) SUB_SENSOR(pressure) void set_k_value(uint16_t k_value)
Definition xgzp68xx.h:12
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