ba5e47bc77
1. 应用界面增加了返回主页的按钮 2. 修复了gif渲染内存泄漏的严重bug 3. 将PetDao当中的cJSON API替换为cpp_json,完美通过测试 4. 整合已经实现的各种上层建筑,实现了一个宠物对话基本业务应用,用于样品测试展示用 5. 重构了音频播放类,使其更modern,更加便于移植和拓展
36 lines
1.1 KiB
C
36 lines
1.1 KiB
C
#pragma once
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <stdio.h>
|
|
#include "freertos/FreeRTOS.h"
|
|
#include "freertos/task.h"
|
|
#include "esp_timer.h"
|
|
#include "esp_err.h"
|
|
#include "esp_log.h"
|
|
#include "lvgl.h"
|
|
#include "demos/lv_demos.h"
|
|
|
|
|
|
|
|
#define LVGL_BUF_LEN (EXAMPLE_LCD_WIDTH * EXAMPLE_LCD_HEIGHT / 8) // 1 byte per pixel
|
|
#define EXAMPLE_LVGL_TICK_PERIOD_MS 2
|
|
|
|
extern lv_disp_draw_buf_t disp_buf; // contains internal graphic buffer(s) called draw buffer(s)
|
|
extern lv_disp_drv_t disp_drv; // contains callback functions
|
|
extern lv_disp_t *disp;
|
|
|
|
void example_lvgl_flush_cb(lv_disp_drv_t *drv, const lv_area_t *area, lv_color_t *color_map);
|
|
/* Rotate display and touch, when rotated screen in LVGL. Called when driver parameters are updated. */
|
|
void example_lvgl_port_update_callback(lv_disp_drv_t *drv);
|
|
void example_increase_lvgl_tick(void *arg);
|
|
|
|
void LVGL_Init(void); // Call this function to initialize the screen (must be called in the main function) !!!!!
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|