ESPHome  2024.4.2
max6956_led_output.h
Go to the documentation of this file.
1 #pragma once
2 
5 
6 namespace esphome {
7 namespace max6956 {
8 
9 class MAX6956;
10 
12  public:
13  void set_parent(MAX6956 *parent) { this->parent_ = parent; }
14  void set_pin(uint8_t pin) { pin_ = pin; }
15  void setup() override;
16  void dump_config() override;
17  float get_setup_priority() const override { return setup_priority::HARDWARE; }
18 
19  protected:
20  void write_state(float state) override;
21  void write_state(bool state) override;
22 
24  uint8_t pin_;
25 };
26 
27 } // namespace max6956
28 } // namespace esphome
Base class for all output components that can output a variable level, like PWM.
Definition: float_output.h:31
float get_setup_priority() const override
const float HARDWARE
For components that deal with hardware and are very important like GPIO switch.
Definition: component.cpp:18
This is a workaround until we can figure out a way to get the tflite-micro idf component code availab...
Definition: a01nyub.cpp:7
bool state
Definition: fan.h:34
void write_state(float state) override