diff --git a/project/Core/Src/tftp.c b/project/Core/Src/tftp.c index 2899362..8328eea 100644 --- a/project/Core/Src/tftp.c +++ b/project/Core/Src/tftp.c @@ -144,8 +144,8 @@ void tftp_close(void* handle) { if (handle == &virt_file[1]) { // TODO: waiting on pr of tim to merge so we can use the bmp lcd function lcd_clear(LCD_COLOR_BLACK); - lcd_display_text((uint8_t*)"show me what you got virtImage.raw", 0, 0, LCD_COLOR_BLACK, LCD_COLOR_WHITE, LCD_FONT16); - //lcd_draw_bmp_img((uint8_t*)virt_file[1].data, 0, 0); + //lcd_display_text((uint8_t*)"show me what you got virtImage.raw", 0, 0, LCD_COLOR_BLACK, LCD_COLOR_WHITE, LCD_FONT16); + lcd_draw_bmp_img((uint8_t*)virt_file[1].data, 0, 0); } if (handle == &virt_file[2]) { diff --git a/tests/mocs.c b/tests/mocs.c index da69c34..05e5989 100644 --- a/tests/mocs.c +++ b/tests/mocs.c @@ -24,4 +24,8 @@ void lcd_display_text(uint8_t* text, uint16_t x_pos, uint16_t y_pos, uint32_t co void lcd_clear(uint32_t color) { +} + +void lcd_draw_bmp_img(uint8_t* bmp_buff, uint32_t x_pos, uint32_t y_pos) { + } \ No newline at end of file diff --git a/tests/tftp_server.h b/tests/tftp_server.h index 45a1d8c..00677be 100644 --- a/tests/tftp_server.h +++ b/tests/tftp_server.h @@ -37,6 +37,7 @@ void tftp_cleanup(void); uint32_t logger_get_timestamp(void); int tftp_init(struct tftp_context* context); void lcd_display_text(uint8_t* text, uint16_t x_pos, uint16_t y_pos, uint32_t color, uint32_t bg_color, sFONT *font); +void lcd_draw_bmp_img(uint8_t* bmp_buff, uint32_t x_pos, uint32_t y_pos); void lcd_clear(uint32_t color); #ifdef __cplusplus