From 24981c493ea843703dc893452b51bbe725db1fa0 Mon Sep 17 00:00:00 2001 From: Andrew Lalis Date: Fri, 2 Dec 2022 19:50:54 +0100 Subject: [PATCH] Added method. --- src/control.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/control.h b/src/control.h index d88db2d..1d5463a 100644 --- a/src/control.h +++ b/src/control.h @@ -36,4 +36,10 @@ extern volatile uint8_t CTL_INPUT_FLAGS; */ void ctl_init(); +/** + * @brief Determines if button A has been pressed. + * @return uint8_t 1 if pressed, 0 otherwise. + */ +uint8_t ctl_isButtonAPressed(); + #endif \ No newline at end of file