diff options
| author | krolyxon <me@krolyxon.com> | 2026-05-14 23:14:31 +0530 |
|---|---|---|
| committer | krolyxon <me@krolyxon.com> | 2026-05-14 23:14:31 +0530 |
| commit | 206ed229198be252a9ae94342b39618aaab55925 (patch) | |
| tree | 06d2ad100372c595974f1c6dcb1cd23ccdd26207 /src/utils/buttons.cpp | |
| parent | 3672abc8b44c50ab344aeaf3c720c8502ccc128d (diff) | |
apply code formatting
Diffstat (limited to 'src/utils/buttons.cpp')
| -rw-r--r-- | src/utils/buttons.cpp | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/utils/buttons.cpp b/src/utils/buttons.cpp index d3d1020..1e93150 100644 --- a/src/utils/buttons.cpp +++ b/src/utils/buttons.cpp @@ -1,15 +1,14 @@ #include "buttons.h" -#include <Arduino.h> #include "../config.h" +#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); +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); } bool btnUp() { return !digitalRead(BTN_UP); } |
