Commanders
Arduino buttons/bus library
ButtonsCommanderSwitchOnePin.hpp
1
//-------------------------------------------------------------------
2
#ifndef __buttonsCommanderSwitchOnePin_H__
3
#define __buttonsCommanderSwitchOnePin_H__
4
//-------------------------------------------------------------------
5
6
#include <
Commanders.h
>
7
#ifndef NO_BUTTONSCOMMANDER
8
#ifndef NO_BUTTONSCOMMANDERSWITCH
9
20
class
ButtonsCommanderSwitchOnePin
:
public
ButtonsCommanderButton
21
{
22
private
:
23
GPIO_pin_t Pin;
24
unsigned
long
debounceDelay;
// the debounce time; increase if the output flickers
25
byte lastButtonState;
26
unsigned
long
lastDebounceTime;
27
28
public
:
30
ButtonsCommanderSwitchOnePin
();
31
36
void
begin
(
unsigned
long
inId,
int
inPin);
39
void
beforeFirstLoop
();
41
unsigned
long
loop
();
42
43
#ifdef COMMANDERS_PRINT_COMMANDERS
44
47
void
printCommander();
48
#endif
49
};
50
51
//-------------------------------------------------------------------
52
#endif
53
#endif
54
#endif
ButtonsCommanderSwitchOnePin::loop
unsigned long loop()
Definition:
ButtonsCommanderSwitchOnePin.cpp:37
ButtonsCommanderSwitchOnePin::beforeFirstLoop
void beforeFirstLoop()
Definition:
ButtonsCommanderSwitchOnePin.cpp:26
ButtonsCommanderSwitchOnePin::begin
void begin(unsigned long inId, int inPin)
Definition:
ButtonsCommanderSwitchOnePin.cpp:18
ButtonsCommanderSwitchOnePin::ButtonsCommanderSwitchOnePin
ButtonsCommanderSwitchOnePin()
Definition:
ButtonsCommanderSwitchOnePin.cpp:11
ButtonsCommanderButton
Definition:
ButtonsCommanderButton.hpp:15
ButtonsCommanderSwitchOnePin
Definition:
ButtonsCommanderSwitchOnePin.hpp:20
Commanders.h
src
ButtonsCommanderSwitchOnePin.hpp
Generated on jeu. nov. 22 2018 18:52:30 for Commanders by
1.2.10