mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-06-01 02:28:28 +02:00
28aedae8d7
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
23 lines
481 B
C++
23 lines
481 B
C++
#pragma once
|
|
|
|
#include "../emc2101.h"
|
|
#include "esphome/components/output/float_output.h"
|
|
|
|
namespace esphome {
|
|
namespace emc2101 {
|
|
|
|
/// This class allows to control the EMC2101 output.
|
|
class EMC2101Output : public output::FloatOutput {
|
|
public:
|
|
EMC2101Output(Emc2101Component *parent) : parent_(parent) {}
|
|
|
|
protected:
|
|
/** Used by ESPHome framework. */
|
|
void write_state(float state) override;
|
|
|
|
Emc2101Component *parent_;
|
|
};
|
|
|
|
} // namespace emc2101
|
|
} // namespace esphome
|