ESPHome
2024.12.2
esphome
esphome
components
emc2101
output
emc2101_output.cpp
Go to the documentation of this file.
1
#include "
emc2101_output.h
"
2
3
namespace
esphome
{
4
namespace
emc2101 {
5
6
void
EMC2101Output::write_state
(
float
state
) { this->
parent_
->
set_duty_cycle
(state); }
7
8
}
// namespace emc2101
9
}
// namespace esphome
emc2101_output.h
esphome::emc2101::EMC2101Output::write_state
void write_state(float state) override
Used by ESPHome framework.
Definition:
emc2101_output.cpp:6
esphome::emc2101::EMC2101Output::parent_
Emc2101Component * parent_
Definition:
emc2101_output.h:18
esphome::emc2101::Emc2101Component::set_duty_cycle
void set_duty_cycle(float value)
Sets the Fan output duty cycle.
Definition:
emc2101.cpp:109
esphome
Implementation of SPI Controller mode.
Definition:
a01nyub.cpp:7
state
bool state
Definition:
fan.h:34
Generated by
1.8.13