Fixed lcd_display_text

This commit is contained in:
Roelandts_Gert
2023-11-27 15:01:41 +01:00
committed by Sander Speetjens
parent 6de8684d89
commit fb44367da7
2 changed files with 6 additions and 7 deletions

View File

@@ -35,10 +35,6 @@
#include "tcp_cmd.h"
#include "website_backend.h"
#include "cmd.h"
#include <tcp.h>
#include <stdio.h>
#include <string.h>
/* USER CODE END Includes */
/* Private typedef -----------------------------------------------------------*/
@@ -132,8 +128,10 @@ int main(void) {
/* Initialize the LCD */
lcd_init(true);
/* Initialize the filesystem */
llfs_init();
/* Initialize the filesystem */
llfs_init();
tcp_cmd_init();
/* USER CODE END 2 */
/* Initialize the tftp server */
tftp_server_init();

View File

@@ -62,7 +62,8 @@ static err_t tcp_cmd_recv(void* arg, struct tcp_pcb* pcb, struct pbuf* p, err_t
}
text[i - 1] = '\0';
lcd_clear_text();
lcd_display_text(text, 10, 10, result_txt, LCD_FONT16);
lcd_display_text(text, 10, 10, result_txt, result_bg, LCD_FONT16);
check = 1;
} else if (!strncmp(tcp_buffer, "color", 5)) {