ESPHome 2026.6.0-dev
Loading...
Searching...
No Matches
sx1509_float_output.h
Go to the documentation of this file.
1#pragma once
2
5
6namespace esphome::sx1509 {
7
8class SX1509Component;
9
11 public:
12 void set_parent(SX1509Component *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
22 uint8_t pin_;
23};
24
25} // namespace esphome::sx1509
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
Here you'll find the Arduino code used to interface with the SX1509 I2C 16 I/O expander.