lvgl ui support AiUIBuilder

This commit is contained in:
刘可亮
2024-11-26 13:23:39 +08:00
parent e4a45f6b7d
commit a89bc72654
57 changed files with 530 additions and 110 deletions

View File

@@ -0,0 +1,22 @@
/*
* Copyright (C) 2024 ArtInChip Technology Co., Ltd.
*
* SPDX-License-Identifier: Apache-2.0
*
* lv_conf_custom.h for custom lv_conf.h file
* example :
* #undef LV_USE_LOG
* #define LV_USE_LOG 1
*/
#ifndef LV_CONF_CUSTOM_H
#define LV_CONF_CUSTOM_H
/* code begin */
#undef LV_USE_FREETYPE
#define LV_USE_FREETYPE 1
/* code end */
#endif /* LV_CONF_CUSTOM_H */

View File

@@ -0,0 +1,17 @@
/*
* Copyright (C) 2024 ArtInChip Technology Co., Ltd.
*
* SPDX-License-Identifier: Apache-2.0
*
* Authors: ArtInChip
*/
#include "ui_init.h"
void ui_init(void)
{
lv_obj_t * label = lv_label_create(lv_scr_act());
lv_label_set_text(label, "You can replace this code with the code generated by AiUIBuilder!");
lv_obj_center(label);
}

View File

@@ -0,0 +1,26 @@
/*
* Copyright (C) 2024 ArtInChip Technology Co., Ltd.
*
* SPDX-License-Identifier: Apache-2.0
*
* Authors: ArtInChip
*/
#ifndef _UI_INIT_H
#define _UI_INIT_H
#ifdef __cplusplus
extern "C" {
#endif
#include <stdio.h>
#include "lvgl.h"
void ui_init(void);
#ifdef __cplusplus
} /*extern "C"*/
#endif
#endif // _UI_INIT_H