ESPHome 2026.6.0-dev
Loading...
Searching...
No Matches
max6956_led_output.h
Go to the documentation of this file.
1#pragma once
2
5
6namespace esphome::max6956 {
7
8class MAX6956;
9
11 public:
12 void set_parent(MAX6956 *parent) { this->parent_ = parent; }
13 void set_pin(uint8_t pin) { pin_ = pin; }
14 void setup() override;
15 void dump_config() override;
16 float get_setup_priority() const override { return setup_priority::HARDWARE; }
17
18 protected:
19 void write_state(float state) override;
20 void write_state(bool state) override;
21
23 uint8_t pin_;
24};
25
26} // namespace esphome::max6956
void write_state(float state) override
float get_setup_priority() const override
Base class for all output components that can output a variable level, like PWM.
bool state
Definition fan.h:2
constexpr float HARDWARE
For components that deal with hardware and are very important like GPIO switch.
Definition component.h:41