diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2018-04-05 11:25:18 -0400 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2018-04-05 11:25:18 -0400 |
commit | 7eb572702ca012a89370cc94a297eeb346a8dee9 (patch) | |
tree | 40622609466fa3cbcc1d709045623ffdd07d6aa9 /src/display_draw.c | |
parent | cbdea74b39b9b0e47885334268740de727798bb0 (diff) |
font on flash, ftostr
Diffstat (limited to 'src/display_draw.c')
-rw-r--r-- | src/display_draw.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/display_draw.c b/src/display_draw.c index c57f63b..7241f83 100644 --- a/src/display_draw.c +++ b/src/display_draw.c @@ -20,6 +20,8 @@ #include <display_draw.h> #include <display.h> +#include <flash.h> +#include <heap.h> #include <task.h> #include <clock.h> @@ -32,7 +34,8 @@ static unsigned int cury = 0; static unsigned int curxo = 0; static unsigned int curyo = 0; -extern const unsigned char inconsolata24[192 * 156 * 2 + 1]; +//extern const unsigned char inconsolata24[192 * 156 * 2 + 1]; +static unsigned char *inconsolata24; void task_cursor(void) { @@ -48,6 +51,9 @@ void task_cursor(void) void dsp_cursoron(void) { + inconsolata24 = malloc(192 * 156 * 2); + flash_read((char *)inconsolata24, 0, 192 * 156 * 2); + task_start(task_cursor, 512); } |