ESPHome 2025.5.0
Loading...
Searching...
No Matches
output_button.h
Go to the documentation of this file.
1#pragma once
2
6
7namespace esphome {
8namespace output {
9
10class OutputButton : public button::Button, public Component {
11 public:
12 void dump_config() override;
13
14 void set_output(BinaryOutput *output) { output_ = output; }
16
17 protected:
18 void press_action() override;
19
21 uint32_t duration_;
22};
23
24} // namespace output
25} // namespace esphome
Base class for all buttons.
Definition button.h:29
output::BinaryOutput * output_
void set_output(BinaryOutput *output)
void set_duration(uint32_t duration)
uint8_t duration
Definition msa3xx.h:0
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7