增加屏幕驱动

This commit is contained in:
2026-07-30 19:20:34 +08:00
parent 2306a0272c
commit cef702dba0
6 changed files with 195 additions and 8 deletions
+8 -5
View File
@@ -13,6 +13,9 @@
#include "esp_flash.h"
#include "esp_system.h"
#include "iic.h"
#include "oled.h"
void app_main(void)
{
printf("Hello world!\n");
@@ -42,11 +45,11 @@ void app_main(void)
printf("Minimum free heap size: %" PRIu32 " bytes\n", esp_get_minimum_free_heap_size());
for (int i = 10; i >= 0; i--) {
printf("Restarting in %d seconds...\n", i);
iic_init();
oled_init();
while(1){
vTaskDelay(1000 / portTICK_PERIOD_MS);
}
printf("Restarting now.\n");
fflush(stdout);
esp_restart();
}