From b0cd81cf66c0e5b5d0d662384752337f6c69cde5 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Thu, 15 Feb 2018 08:35:35 -0500 Subject: better drawing, landscape --- include/display.h | 4 ++-- include/display_draw.h | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 include/display_draw.h (limited to 'include') 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 -#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_ -- cgit v1.2.3