mirror of
https://gitee.com/Vancouver2017/luban-lite-t3e-pro.git
synced 2025-12-15 19:08:54 +00:00
lvgl ui support AiUIBuilder
This commit is contained in:
Binary file not shown.
@@ -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 */
|
||||
17
packages/artinchip/lvgl-ui/aic_demo/ui_builder/ui_init.c
Normal file
17
packages/artinchip/lvgl-ui/aic_demo/ui_builder/ui_init.c
Normal 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);
|
||||
}
|
||||
26
packages/artinchip/lvgl-ui/aic_demo/ui_builder/ui_init.h
Normal file
26
packages/artinchip/lvgl-ui/aic_demo/ui_builder/ui_init.h
Normal 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
|
||||
Reference in New Issue
Block a user