ESPHome  2024.9.0
template_button.h
Go to the documentation of this file.
1 #pragma once
2 
4 
5 namespace esphome {
6 namespace template_ {
7 
8 class TemplateButton : public button::Button {
9  public:
10  // Implements the abstract `press_action` but the `on_press` trigger already handles the press.
11  void press_action() override{};
12 };
13 
14 } // namespace template_
15 } // namespace esphome
Base class for all buttons.
Definition: button.h:29
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7