From 8e11f269ce352df26af7c44d283131494dcd70fa Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Wed, 11 Apr 2018 20:49:32 -0400 Subject: status bar, arrow keys, ins/del --- include/display_draw.h | 5 +++++ include/keypad.h | 5 +++++ 2 files changed, 10 insertions(+) (limited to 'include') 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 +#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. -- cgit v1.2.3