ESPHome  2024.12.2
mmc5983.h
Go to the documentation of this file.
1 #pragma once
2 
6 
7 namespace esphome {
8 namespace 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
sensor::Sensor * y_sensor_
Definition: mmc5983.h:23
This class simplifies creating components that periodically check a state.
Definition: component.h:283
sensor::Sensor * x_sensor_
Definition: mmc5983.h:22
void set_x_sensor(sensor::Sensor *x_sensor)
Definition: mmc5983.h:17
sensor::Sensor * z_sensor_
Definition: mmc5983.h:24
void set_z_sensor(sensor::Sensor *z_sensor)
Definition: mmc5983.h:19
void set_y_sensor(sensor::Sensor *y_sensor)
Definition: mmc5983.h:18
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7
Base-class for all sensors.
Definition: sensor.h:57
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