From 206ed229198be252a9ae94342b39618aaab55925 Mon Sep 17 00:00:00 2001 From: krolyxon Date: Thu, 14 May 2026 23:14:31 +0530 Subject: apply code formatting --- src/utils/buttons.cpp | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'src/utils/buttons.cpp') 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 #include "../config.h" +#include -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); } -- cgit v1.2.3