ESPHome 2025.5.0
Loading...
Searching...
No Matches
mmc5983.h
Go to the documentation of this file.
1#pragma once
2
6
7namespace esphome {
8namespace mmc5983 {
9
11 public:
12 void update() override;
13 void setup() override;
14 void dump_config() override;
15 float get_setup_priority() const override;
16
17 void set_x_sensor(sensor::Sensor *x_sensor) { x_sensor_ = x_sensor; }
18 void set_y_sensor(sensor::Sensor *y_sensor) { y_sensor_ = y_sensor; }
19 void set_z_sensor(sensor::Sensor *z_sensor) { z_sensor_ = z_sensor; }
20
21 protected:
25};
26
27} // namespace mmc5983
28} // 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
float get_setup_priority() const override
Definition mmc5983.cpp:138
void set_y_sensor(sensor::Sensor *y_sensor)
Definition mmc5983.h:18
void set_x_sensor(sensor::Sensor *x_sensor)
Definition mmc5983.h:17
void set_z_sensor(sensor::Sensor *z_sensor)
Definition mmc5983.h:19
Base-class for all sensors.
Definition sensor.h:57
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7