Separate home and code

This commit is contained in:
Steven Tracey 2024-11-20 22:22:22 -05:00
parent af54972ca9
commit bb64d073a6

View File

@ -28,7 +28,16 @@ void Handler(int sigNum) {
exit(0); exit(0);
} }
int draw() { void home(UWORD *blackImage) {
Paint_NewImage(blackImage, EPD_2in13_V4_WIDTH, EPD_2in13_V4_HEIGHT, 0, WHITE);
}
void code(UWORD *blackImage) {
}
int drawLoop() {
if (DEV_Module_Init() != 0) { if (DEV_Module_Init() != 0) {
return -1; return -1;
} }
@ -44,7 +53,6 @@ int draw() {
while(1) { while(1) {
Paint_NewImage(BlackImage, EPD_2in13_V4_WIDTH, EPD_2in13_V4_HEIGHT, 90, WHITE); Paint_NewImage(BlackImage, EPD_2in13_V4_WIDTH, EPD_2in13_V4_HEIGHT, 90, WHITE);
EPD_2in13_V4_Init(); EPD_2in13_V4_Init();
Paint_SelectImage(BlackImage); Paint_SelectImage(BlackImage);
@ -102,7 +110,7 @@ int main() {
loadConfigs(); loadConfigs();
draw(); drawLoop();
return 0; return 0;
} }