From f90c71412cd715e1a7293ecdb0237c96fbfe9bb8 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Wed, 14 Feb 2018 23:24:11 -0500 Subject: font support, inconsolata --- src/main.c | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 74b5497..b91a975 100644 --- a/src/main.c +++ b/src/main.c @@ -102,12 +102,19 @@ void kmain(void) asm("cpsie i"); dsp_init(); - dsp_set_addr(0, 0, LCD_WIDTH, LCD_HEIGHT); - int w = LCD_WIDTH * LCD_HEIGHT; - do { - dsp_write_data(0);//c >> 8); - dsp_write_data(0);//c & 0xFF); - } while (w--); + //uint16_t c = 0x38; + uint16_t c = 0; + for (int i = 0; i < LCD_HEIGHT; i++) { + dsp_set_addr(0, i, LCD_WIDTH - 1, i); + int w = LCD_WIDTH - 1; + do { + dsp_write_data(c);//c >> 8); + dsp_write_data(c);//c & 0xFF); + } while (w--); + } + + extern void dsp_puts(const char *); + dsp_puts("Hello, world! My name is Clyne."); //task_start(lcd_handler, 128); //delay(200); -- cgit v1.2.3