Add Serial Terminal App & WebUi Theme
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
#include "os_app.h"
|
||||
#include "os_cli.h"
|
||||
#include "sys_wifi.h"
|
||||
#include "sys_uart.h"
|
||||
#include "apps.h"
|
||||
|
||||
static const char *TAG = "MICRO_OS";
|
||||
@@ -94,6 +95,12 @@ void app_main(void)
|
||||
ESP_LOGE(TAG, "Failed to initialize Wi-Fi subsystem: %s", esp_err_to_name(err));
|
||||
}
|
||||
|
||||
// 1c. Hardware UART Subsystem (TX: GPIO 21, RX: GPIO 20)
|
||||
err = sys_uart_init(115200);
|
||||
if (err != ESP_OK) {
|
||||
ESP_LOGE(TAG, "Failed to initialize UART subsystem: %s", esp_err_to_name(err));
|
||||
}
|
||||
|
||||
// 2. Display & Graphics Subsystem
|
||||
err = sys_gfx_init();
|
||||
if (err != ESP_OK) {
|
||||
@@ -108,6 +115,7 @@ void app_main(void)
|
||||
sys_app_init();
|
||||
sys_app_register(&g_app_clock);
|
||||
sys_app_register(&g_app_sysmon);
|
||||
sys_app_register(&g_app_serial);
|
||||
sys_app_register(&g_app_game);
|
||||
sys_app_register(&g_app_settings);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user