Implemented support for the TLC5971 as an output component (#6494)

This commit is contained in:
IJssel
2024-04-09 22:03:18 +02:00
committed by GitHub
parent 857b8ef363
commit 3adfed3675
15 changed files with 303 additions and 0 deletions
@@ -0,0 +1,22 @@
#pragma once
#include "esphome/core/helpers.h"
#include "esphome/components/output/float_output.h"
#include "../tlc5971.h"
namespace esphome {
namespace tlc5971 {
class TLC5971Channel : public output::FloatOutput, public Parented<TLC5971> {
public:
void set_channel(uint8_t channel) { this->channel_ = channel; }
protected:
void write_state(float state) override;
uint8_t channel_;
};
} // namespace tlc5971
} // namespace esphome