Fixed lcd_display_text
This commit is contained in:
@@ -35,10 +35,6 @@
|
|||||||
#include "tcp_cmd.h"
|
#include "tcp_cmd.h"
|
||||||
#include "website_backend.h"
|
#include "website_backend.h"
|
||||||
|
|
||||||
#include "cmd.h"
|
|
||||||
#include <tcp.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <string.h>
|
|
||||||
/* USER CODE END Includes */
|
/* USER CODE END Includes */
|
||||||
|
|
||||||
/* Private typedef -----------------------------------------------------------*/
|
/* Private typedef -----------------------------------------------------------*/
|
||||||
@@ -132,8 +128,10 @@ int main(void) {
|
|||||||
/* Initialize the LCD */
|
/* Initialize the LCD */
|
||||||
lcd_init(true);
|
lcd_init(true);
|
||||||
|
|
||||||
/* Initialize the filesystem */
|
/* Initialize the filesystem */
|
||||||
llfs_init();
|
llfs_init();
|
||||||
|
tcp_cmd_init();
|
||||||
|
/* USER CODE END 2 */
|
||||||
|
|
||||||
/* Initialize the tftp server */
|
/* Initialize the tftp server */
|
||||||
tftp_server_init();
|
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';
|
text[i - 1] = '\0';
|
||||||
lcd_clear_text();
|
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;
|
check = 1;
|
||||||
} else if (!strncmp(tcp_buffer, "color", 5)) {
|
} else if (!strncmp(tcp_buffer, "color", 5)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user