summaryrefslogtreecommitdiff
path: root/src/common/button.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/button.c')
-rw-r--r--src/common/button.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/common/button.c b/src/common/button.c
index 716941d..78e5b26 100644
--- a/src/common/button.c
+++ b/src/common/button.c
@@ -43,3 +43,10 @@ button_wait (void)
while (!IO_GET (BUTTON_IO))
;
}
+
+uint8_t
+button_pressed (void)
+{
+ return !IO_GET (BUTTON_IO);
+}
+