ESPHome
2023.5.5
esphome
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
{
8
namespace
mcp47a1 {
9
10
class
MCP47A1
:
public
Component
,
public
output::FloatOutput
,
public
i2c::I2CDevice
{
11
public
:
12
void
dump_config
()
override
;
13
void
write_state
(
float
state
)
override
;
14
};
15
16
}
// namespace mcp47a1
17
}
// namespace esphome
esphome::output::FloatOutput
Base class for all output components that can output a variable level, like PWM.
Definition:
float_output.h:31
esphome::mcp47a1::MCP47A1::write_state
void write_state(float state) override
Definition:
mcp47a1.cpp:15
esphome::Component
Definition:
component.h:67
esphome::mcp47a1::MCP47A1::dump_config
void dump_config() override
Definition:
mcp47a1.cpp:10
float_output.h
esphome::mcp47a1::MCP47A1
Definition:
mcp47a1.h:10
esphome
Definition:
a4988.cpp:4
component.h
esphome::i2c::I2CDevice
Definition:
i2c.h:39
state
bool state
Definition:
fan.h:34
i2c.h
Generated by
1.8.13