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

@@ -53,7 +53,7 @@ include_directories(LWIP/App LWIP/Target Core/Inc Middlewares/Third_Party/LwIP/s
add_definitions(-DDEBUG -DUSE_HAL_DRIVER -DSTM32F746xx)
#file(GLOB_RECURSE SOURCES "Core/*.*" "Drivers/*.*" "LWIP/*.*" "Middlewares/*.*")
#file(GLOB_RECURSE SOURCES "Core/*.*" "LWIP/*.*" "Middlewares/*.*" "Drivers/*.*")
file(GLOB_RECURSE SOURCES "Core/Src/*.*" "Core/Startup/*.*" "LWIP/*.*" "Middlewares/*.*" "Drivers/*.*")

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);
}