DCC-EX Simple Throttle
Simple throttle for a DCC-EX CommandStation
Loading...
Searching...
No Matches
/home/runner/work/DCCEXSimpleThrottle/DCCEXSimpleThrottle/Button.h
Go to the documentation of this file.
1/*
2 * © 2024 Peter Cole
3 * © 2023 Peter Cole
4 *
5 * This is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * It is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this code. If not, see <https://www.gnu.org/licenses/>.
17 */
18
19#ifndef BUTTON_H
20#define BUTTON_H
21
23#include "avdweb_Switch.h"
24
26public:
28 Button();
29
31 void begin() override;
32
37
38private:
40};
41
42#endif // BUTTON_H
UserConfirmationAction
User confirmation action data types available.
Definition UserConfirmationInterface.h:23
Definition Button.h:25
UserConfirmationAction getUserConfirmationAction()
Check for any user confirmation actions This should be called at least once per main loop iteration.
Definition Button.cpp:29
Switch * _button
Definition Button.h:39
Button()
Constructor for the button object.
Definition Button.cpp:22
void begin() override
Not required to be implemented for this type.
Definition Button.cpp:27
Definition avdweb_Switch.h:46
Interface class to abstract user confirmation actions from physical implementations All physical user...
Definition UserConfirmationInterface.h:29