each screen now has it's own file, and there is a framework for adding more

This commit is contained in:
2025-08-05 17:30:03 -04:00
parent db26be2a07
commit 914ce0d7ad
8 changed files with 64 additions and 43 deletions

19
screens.c Normal file
View File

@@ -0,0 +1,19 @@
/* SPDX-License-Identifier: MIT */
#include "globals.h"
#include "home.h"
#include "error.h"
/* NOTE: this should be compile time */
struct Screen screens[] = {
{
"home",
NULL,
draw_home
},
{
"error",
NULL,
draw_error
}
};