From 6418e2062ae1492249c722986717210f9c5c5e63 Mon Sep 17 00:00:00 2001 From: Mitchell M Date: Thu, 26 Mar 2026 17:58:25 -0500 Subject: [PATCH] add init code --- main/main.cpp | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/main/main.cpp b/main/main.cpp index 4fd9887..cc169c9 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -13,10 +13,13 @@ #include "esp_flash.h" #include "esp_system.h" #include "blk_box.h" +#include "blk_box_drivers/i2c.h" -extern "C" void app_main(void) -{ - printf(get_hello_world()); +extern "C" void app_main(void) { + BlkBoxInitConfig blk_box_cfg = {}; + init_blk_box(blk_box_cfg); + + i2c_test(); /* Print chip information */ esp_chip_info_t chip_info; @@ -44,10 +47,10 @@ extern "C" 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); + printf("Doing nothing in %d seconds...\n", i); vTaskDelay(1000 / portTICK_PERIOD_MS); } - printf("Restarting now.\n"); - fflush(stdout); - esp_restart(); + // printf("Restarting now.\n"); + // fflush(stdout); + // esp_restart(); }