Fixed lcd_display_text
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user