ESPHome 2026.6.0-dev
Loading...
Searching...
No Matches
mmc5983.h
Go to the documentation of this file.
1#pragma once
2
6
7namespace esphome::mmc5983 {
8
10 public:
11 void update() override;
12 void setup() override;
13 void dump_config() override;
14
15 void set_x_sensor(sensor::Sensor *x_sensor) { x_sensor_ = x_sensor; }
16 void set_y_sensor(sensor::Sensor *y_sensor) { y_sensor_ = y_sensor; }
17 void set_z_sensor(sensor::Sensor *z_sensor) { z_sensor_ = z_sensor; }
18
19 protected:
23};
24
25} // namespace esphome::mmc5983
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
void set_y_sensor(sensor::Sensor *y_sensor)
Definition mmc5983.h:16
void set_x_sensor(sensor::Sensor *x_sensor)
Definition mmc5983.h:15
void set_z_sensor(sensor::Sensor *z_sensor)
Definition mmc5983.h:17
Base-class for all sensors.
Definition sensor.h:47