base of menu system

This commit is contained in:
2023-04-05 22:42:55 +02:00
parent b397856366
commit 6048bdf115
7 changed files with 276 additions and 47 deletions
+1
View File
@@ -99,4 +99,5 @@ static const font3x_bitmap_t PROGMEM font35_ascii[] = {
static const struct utf_glyph3x PROGMEM font35_extra[] = {
{.utf={.symbol=""}, {{0x1f, 0x1f, 0x1f}}},
{.utf={.symbol="°"}, {{0x07, 0x05, 0x07}}},
{.utf={.symbol=""}, {{0x15, 0x0e, 0x04}}},
};
+7
View File
@@ -588,11 +588,18 @@ const char *font_extras[] = {
"xxx",
" ",
" ",
// Extra 2 "→"
"x ",
" x ",
"xxx",
" x ",
"x ",
};
const char *font_extras_utf[] = {
"",
"°",
"",
};
#include "fontedit_render.inc.c"
+3 -3
View File
@@ -99,10 +99,10 @@ void main() {
fb_text(15, 15, "MEOW", FONT_DOUBLEH, 1);
fb_text(40, 15, "MEOW", FONT_DOUBLEW, 1);
fb_text(40, 23, "MEOW", FONT_BOLD, 1);
fb_text(5, 5, "Tiny 3x5", FONT_3X5, 1);
fb_text(5, 5, "Tiny 3x5", FONT_3X5, 1);
fb_text(40, 5, "Tiny 4x5 MEOW", FONT_4X5, 1);
fb_frame(12,12,80,20,1,1);
// fb_text(36, 5, "-123456789.0 CPM°", FONT_TINY, 1);