ESPHome
2025.5.0
Loading...
Searching...
No Matches
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
esphome::emc2101::EMC2101Output::parent_
Emc2101Component * parent_
Definition
emc2101_output.h:18
esphome::emc2101::EMC2101Output::write_state
void write_state(float state) override
Used by ESPHome framework.
Definition
emc2101_output.cpp:6
esphome::emc2101::Emc2101Component::set_duty_cycle
void set_duty_cycle(float value)
Sets the Fan output duty cycle.
Definition
emc2101.cpp:109
emc2101_output.h
state
bool state
Definition
fan.h:0
esphome
Providing packet encoding functions for exchanging data with a remote host.
Definition
a01nyub.cpp:7
Generated by
1.12.0