Add display text for virtImage and clear display for virtText
This commit is contained in:
2023-11-13 17:44:23 +01:00
parent 43e28b4dab
commit eb7dcce09e
2 changed files with 7 additions and 1 deletions

View File

@@ -145,8 +145,14 @@ void tftp_close(void* handle) {
return;
}
if (handle == &virt_file[1]) {
lcd_clear(LCD_COLOR_BLACK);
lcd_display_text("show me what you got virtImage.raw", 0, 0, LCD_COLOR_BLACK, LCD_COLOR_WHITE, LCD_FONT16);
}
if (handle == &virt_file[2]) {
// TODO: Clear display
lcd_clear(LCD_COLOR_BLACK);
lcd_display_text((uint8_t*)virt_file[2].data, 0, 0, LCD_COLOR_BLACK, LCD_COLOR_WHITE, LCD_FONT16);
}