aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2018-02-15 08:35:35 -0500
committerClyne Sullivan <tullivan99@gmail.com>2018-02-15 08:35:35 -0500
commitb0cd81cf66c0e5b5d0d662384752337f6c69cde5 (patch)
tree77604c4997981144d181af680485f523a860c101 /include
parentf90c71412cd715e1a7293ecdb0237c96fbfe9bb8 (diff)
better drawing, landscape
Diffstat (limited to 'include')
-rw-r--r--include/display.h4
-rw-r--r--include/display_draw.h9
2 files changed, 11 insertions, 2 deletions
diff --git a/include/display.h b/include/display.h
index 1fab223..fb808c6 100644
--- a/include/display.h
+++ b/include/display.h
@@ -3,8 +3,8 @@
#include <stdint.h>
-#define LCD_WIDTH 320
-#define LCD_HEIGHT 480
+#define LCD_WIDTH 480
+#define LCD_HEIGHT 320
#define COLOR_MAX 31
diff --git a/include/display_draw.h b/include/display_draw.h
new file mode 100644
index 0000000..1030d45
--- /dev/null
+++ b/include/display_draw.h
@@ -0,0 +1,9 @@
+#ifndef DISPLAY_DRAW_H_
+#define DISPLAY_DRAW_H_
+
+void dsp_rect(int x, int y, int w, int h, uint16_t color);
+
+void dsp_cpos(int x, int y);
+void dsp_puts(const char *s);
+
+#endif // DISPLAY_DRAW_H_