ESPHome  2024.11.0
emc2101_output.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "../emc2101.h"
5 
6 namespace esphome {
7 namespace emc2101 {
8 
11  public:
12  EMC2101Output(Emc2101Component *parent) : parent_(parent) {}
13 
14  protected:
16  void write_state(float state) override;
17 
19 };
20 
21 } // namespace emc2101
22 } // namespace esphome
Base class for all output components that can output a variable level, like PWM.
Definition: float_output.h:31
void write_state(float state) override
Used by ESPHome framework.
This class allows to control the EMC2101 output.
EMC2101Output(Emc2101Component *parent)
This class includes support for the EMC2101 i2c fan controller.
Definition: emc2101.h:29
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7
bool state
Definition: fan.h:34