ESPHome
2026.11.0b6
Loading...
Searching...
No Matches
esphome
components
mmc5983
mmc5983.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/core/component.h
"
4
#include "
esphome/components/sensor/sensor.h
"
5
#include "
esphome/components/i2c/i2c.h
"
6
7
namespace
esphome::mmc5983
{
8
9
class
MMC5983Component
final :
public
PollingComponent
,
public
i2c::I2CDevice
{
10
SUB_SENSOR(
x
)
11
SUB_SENSOR(
y
)
12
SUB_SENSOR(
z
)
13
14
public
:
15
void
update
()
override
;
16
void
setup()
override
;
17
void
dump_config()
override
;
18
};
19
20
}
// namespace esphome::mmc5983
esphome::PollingComponent
This class simplifies creating components that periodically check a state.
Definition
component.h:532
esphome::PollingComponent::update
virtual void update()=0
esphome::i2c::I2CDevice
This Class provides the methods to read/write bytes from/to an i2c device.
Definition
i2c.h:144
esphome::mmc5983::MMC5983Component
Definition
mmc5983.h:9
component.h
i2c.h
z
bool z
Definition
msa3xx.h:1
esphome::mmc5983
Definition
mmc5983.cpp:7
sensor.h
x
uint16_t x
Definition
tt21100.cpp:5
y
uint16_t y
Definition
tt21100.cpp:6
Generated by
1.12.0