增加状态管理

This commit is contained in:
2026-07-30 19:43:39 +08:00
parent cef702dba0
commit b1e8ffbf85
6 changed files with 250 additions and 2 deletions
+2 -1
View File
@@ -15,6 +15,7 @@
#include "iic.h"
#include "oled.h"
#include "state.h"
void app_main(void)
{
@@ -45,11 +46,11 @@ void app_main(void)
printf("Minimum free heap size: %" PRIu32 " bytes\n", esp_get_minimum_free_heap_size());
state_init();
iic_init();
oled_init();
while(1){
vTaskDelay(1000 / portTICK_PERIOD_MS);
}
}