aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/display_draw.h5
-rw-r--r--include/keypad.h5
2 files changed, 10 insertions, 0 deletions
diff --git a/include/display_draw.h b/include/display_draw.h
index 8db3e2c..1057a1c 100644
--- a/include/display_draw.h
+++ b/include/display_draw.h
@@ -63,6 +63,11 @@ void dsp_rect(int x, int y, int w, int h, uint16_t color);
*/
void dsp_cpos(int x, int y);
+/*
+ * Shifts the cursor the given amount of characters.
+ */
+void dsp_spos(int x, int y);
+
/**
* Sets the pixel offset of the text cursor.
* @param x x-pixel offset from (0, 0)
diff --git a/include/keypad.h b/include/keypad.h
index 5263a0d..d55b867 100644
--- a/include/keypad.h
+++ b/include/keypad.h
@@ -23,6 +23,11 @@
#include <stdint.h>
+#define K_UP 0x18
+#define K_DOWN 0x19
+#define K_LEFT 0x1B
+#define K_RIGHT 0x1A
+
/**
* Initializes GPIO for the keypad.
* Starts a task to poll the buttons. Must be called before any keypad reading.