ESPHome
2024.11.1
esphome
esphome
components
template
button
template_button.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/components/button/button.h
"
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
esphome::button::Button
Base class for all buttons.
Definition:
button.h:29
button.h
esphome::template_::TemplateButton::press_action
void press_action() override
Definition:
template_button.h:11
esphome::template_::TemplateButton
Definition:
template_button.h:8
esphome
Implementation of SPI Controller mode.
Definition:
a01nyub.cpp:7
Generated by
1.8.13