ESPHome 2025.5.0
Loading...
Searching...
No Matches
max6956_led_output.h
Go to the documentation of this file.
1#pragma once
2
5
6namespace esphome {
7namespace max6956 {
8
9class 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
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:0
const float HARDWARE
For components that deal with hardware and are very important like GPIO switch.
Definition component.cpp:18
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7