ESPHome
2026.5.0b1
Loading...
Searching...
No Matches
esphome
components
mcp47a1
mcp47a1.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/components/i2c/i2c.h
"
4
#include "
esphome/components/output/float_output.h
"
5
#include "
esphome/core/component.h
"
6
7
namespace
esphome::mcp47a1
{
8
9
class
MCP47A1
:
public
Component
,
public
output::FloatOutput
,
public
i2c::I2CDevice
{
10
public
:
11
void
dump_config
()
override
;
12
void
write_state
(
float
state
)
override
;
13
};
14
15
}
// namespace esphome::mcp47a1
esphome::Component
Definition
component.h:145
esphome::i2c::I2CDevice
This Class provides the methods to read/write bytes from/to an i2c device.
Definition
i2c.h:132
esphome::mcp47a1::MCP47A1
Definition
mcp47a1.h:9
esphome::mcp47a1::MCP47A1::write_state
void write_state(float state) override
Definition
mcp47a1.cpp:14
esphome::mcp47a1::MCP47A1::dump_config
void dump_config() override
Definition
mcp47a1.cpp:9
esphome::output::FloatOutput
Base class for all output components that can output a variable level, like PWM.
Definition
float_output.h:38
component.h
state
bool state
Definition
fan.h:2
float_output.h
i2c.h
esphome::mcp47a1
Definition
mcp47a1.cpp:5
Generated by
1.12.0