ba5e47bc77
1. 应用界面增加了返回主页的按钮 2. 修复了gif渲染内存泄漏的严重bug 3. 将PetDao当中的cJSON API替换为cpp_json,完美通过测试 4. 整合已经实现的各种上层建筑,实现了一个宠物对话基本业务应用,用于样品测试展示用 5. 重构了音频播放类,使其更modern,更加便于移植和拓展
50 lines
847 B
C
50 lines
847 B
C
#include <stdio.h>
|
|
#include <esp_log.h>
|
|
#include <nvs.h>
|
|
#include <nvs_flash.h>
|
|
|
|
#include "err_handle.h"
|
|
#include "drivers_test.h"
|
|
#include "CppHandle.h"
|
|
|
|
void app_main(void)
|
|
{
|
|
// imu_test(); // imu测试
|
|
|
|
// battery_test();
|
|
|
|
// wireless_test();
|
|
|
|
// sd_card_module_test();
|
|
|
|
// pcf85063_test();
|
|
|
|
// exio_text();
|
|
|
|
// audio_test();
|
|
|
|
// lcd_touch_lvgl_test();
|
|
|
|
// gif_test();
|
|
|
|
// pwr_key_test();
|
|
|
|
// mic_speech_test();
|
|
|
|
// mic_speech_and_gif_and_music_test();
|
|
|
|
// 初始化NVS
|
|
esp_err_t ret = nvs_flash_init();
|
|
if (ret == ESP_ERR_NVS_NO_FREE_PAGES || ret == ESP_ERR_NVS_NEW_VERSION_FOUND) {
|
|
ESP_ERROR_CHECK(nvs_flash_erase());
|
|
ret = nvs_flash_init();
|
|
}
|
|
ESP_ERROR_CHECK(ret);
|
|
|
|
Cpp_Hand();
|
|
|
|
ESP_GOTO(err);
|
|
err:
|
|
ESP_LOGE("app_main", "app_main error");
|
|
}
|