add init code
This commit is contained in:
parent
4bf5fef40b
commit
6418e2062a
@ -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();
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user