Declarations to select which buttons we use. More...
#include <AbleButtons.h>
Go to the source code of this file.
Macros | |
#define | NUM_BUTTONS 2 |
The number of buttons to connect for testing. More... | |
#define | BUTTON_A_PIN 2 |
Connect first button between this pin and ground. More... | |
#define | BUTTON_B_PIN 3 |
Connect second button between this pin and ground. More... | |
#define | TESTABLE_CIRCUIT 1 |
0 = Pulldown; 1 = Pullup More... | |
#define | TESTABLE_CALLBACK 1 |
0 = No Callback; 1 = Callback. More... | |
#define | TESTABLE_CLASS 3 |
0 = DirectButton; 1 = Button; 2 = ClickerButton; 3 = DoubleClickerButton More... | |
#define | TESTABLE_PULLDOWN 0 |
Set TESTABLE_CIRCUIT to this value to test pulldown circuits. More... | |
#define | TESTABLE_PULLUP 1 |
Set TESTABLE_CIRCUIT to this value to test pullup circuits. More... | |
#define | TESTABLE_DIRECT 0 |
Set TESTABLE_CLASS to this value to test Able...DirectButton. More... | |
#define | TESTABLE_BUTTON 1 |
Set TESTABLE_CLASS to this value to test Able...Button. More... | |
#define | TESTABLE_CLICKER 2 |
Set TESTABLE_CLASS to this value to test Able...ClickerButton. More... | |
#define | TESTABLE_DOUBLECLICKER 3 |
Set TESTABLE_CLASS to this value to test Able...DoubleClickerButton. More... | |
#define | TESTABLE_USING_BUTTON AblePullupCallbackDoubleClickerButton |
Using Button to test. More... | |
#define | TESTABLE_USING_BUTTONLIST AblePullupCallbackDoubleClickerButtonList |
Using ButtonList to test. More... | |
Typedefs | |
using | Button = TESTABLE_USING_BUTTON |
Using the button defined by the circuit, callback and class. More... | |
using | ButtonList = TESTABLE_USING_BUTTONLIST |
Using the button list defined by the circuit, callback and class. More... | |
Variables | |
Button | btnA |
Button A. | |
Button | btnB |
Button B. | |
Button * | btns [] |
Array of buttons A and B. More... | |
ButtonList | btnList |
Declaration of button list. | |
Declarations to select which buttons we use.
Change the circuit, callback and class values to test different classes.
Definition in file Config.h.
#define BUTTON_A_PIN 2 |
#define BUTTON_B_PIN 3 |
#define NUM_BUTTONS 2 |
#define TESTABLE_BUTTON 1 |
#define TESTABLE_CLASS 3 |
#define TESTABLE_CLICKER 2 |
#define TESTABLE_DIRECT 0 |
#define TESTABLE_DOUBLECLICKER 3 |
#define TESTABLE_PULLDOWN 0 |
#define TESTABLE_PULLUP 1 |
#define TESTABLE_USING_BUTTON AblePullupCallbackDoubleClickerButton |
#define TESTABLE_USING_BUTTONLIST AblePullupCallbackDoubleClickerButtonList |
using Button = TESTABLE_USING_BUTTON |
using ButtonList = TESTABLE_USING_BUTTONLIST |
|
extern |
Array of buttons A and B.
Array of buttons A and B.
Definition at line 21 of file ButtonableAll.ino.