summaryrefslogtreecommitdiff
path: root/src/utils/buttons.cpp
diff options
context:
space:
mode:
authorkrolyxon <me@krolyxon.com>2026-05-14 23:14:31 +0530
committerkrolyxon <me@krolyxon.com>2026-05-14 23:14:31 +0530
commit206ed229198be252a9ae94342b39618aaab55925 (patch)
tree06d2ad100372c595974f1c6dcb1cd23ccdd26207 /src/utils/buttons.cpp
parent3672abc8b44c50ab344aeaf3c720c8502ccc128d (diff)
apply code formatting
Diffstat (limited to 'src/utils/buttons.cpp')
-rw-r--r--src/utils/buttons.cpp17
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); }