ESPHome 2025.7.1
Loading...
Searching...
No Matches
gl_r01_i2c.h
Go to the documentation of this file.
1#pragma once
2
6
7namespace esphome {
8namespace gl_r01_i2c {
9
11 public:
12 void setup() override;
13 void dump_config() override;
14 void update() override;
15
16 protected:
17 void read_distance_();
18 uint16_t version_{0};
19};
20
21} // namespace gl_r01_i2c
22} // namespace esphome
This class simplifies creating components that periodically check a state.
Definition component.h:422
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:62
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7