ESPHome 2026.6.0-dev
Loading...
Searching...
No Matches
gl_r01_i2c.h
Go to the documentation of this file.
1#pragma once
2
6
7namespace esphome::gl_r01_i2c {
8
10 public:
11 void setup() override;
12 void dump_config() override;
13 void update() override;
14
15 protected:
16 void read_distance_();
17 uint16_t version_{0};
18};
19
20} // namespace esphome::gl_r01_i2c
This class simplifies creating components that periodically check a state.
Definition component.h:585
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