ESPHome 2026.6.0-dev
Loading...
Searching...
No Matches
output_button.h
Go to the documentation of this file.
1#pragma once
2
6
7namespace esphome::output {
8
9class OutputButton : public button::Button, public Component {
10 public:
11 void dump_config() override;
12
13 void set_output(BinaryOutput *output) { output_ = output; }
15
16 protected:
17 void press_action() override;
18
21};
22
23} // namespace esphome::output
Base class for all buttons.
Definition button.h:25
output::BinaryOutput * output_
void set_output(BinaryOutput *output)
void set_duration(uint32_t duration)
uint8_t duration
Definition msa3xx.h:0
static void uint32_t