diff options
Diffstat (limited to 'src/utils/buttons.cpp')
| -rw-r--r-- | src/utils/buttons.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/utils/buttons.cpp b/src/utils/buttons.cpp index 1e93150..d257c58 100644 --- a/src/utils/buttons.cpp +++ b/src/utils/buttons.cpp @@ -3,12 +3,12 @@ #include <Arduino.h> void buttonsInit() { - pinMode(BTN_UP, INPUT_PULLUP); - pinMode(BTN_DOWN, INPUT_PULLUP); - pinMode(BTN_SELECT, INPUT_PULLUP); - pinMode(BTN_BACK, INPUT_PULLUP); - pinMode(BTN_RIGHT, INPUT_PULLUP); - pinMode(BTN_LEFT, INPUT_PULLUP); + pinMode(BTN_UP, INPUT_PULLUP); + pinMode(BTN_DOWN, INPUT_PULLUP); + pinMode(BTN_SELECT, INPUT_PULLUP); + pinMode(BTN_BACK, INPUT_PULLUP); + pinMode(BTN_RIGHT, INPUT_PULLUP); + pinMode(BTN_LEFT, INPUT_PULLUP); } bool btnUp() { return !digitalRead(BTN_UP); } |
