mirror of
https://gitee.com/Vancouver2017/luban-lite-t3e-pro.git
synced 2025-12-15 02:48:54 +00:00
V1.0.5
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
from building import *
|
||||
import os
|
||||
|
||||
cwd = GetCurrentDir()
|
||||
group = []
|
||||
src = Glob('*.c')
|
||||
CPPPATH = [cwd]
|
||||
|
||||
if (GetDepend('LPKG_USING_LVGL_VSCODE')):
|
||||
list = os.listdir(cwd)
|
||||
for d in list:
|
||||
path = os.path.join(cwd, d)
|
||||
if os.path.isfile(os.path.join(path, 'SConscript')):
|
||||
group = group + SConscript(os.path.join(d, 'SConscript'))
|
||||
|
||||
group = group + DefineGroup('LVGL-port', src, depend = ['AIC_LVGL_DEMO'], CPPPATH = CPPPATH)
|
||||
|
||||
Return('group')
|
||||
@@ -0,0 +1,18 @@
|
||||
from building import *
|
||||
import os
|
||||
|
||||
cwd = GetCurrentDir()
|
||||
group = []
|
||||
src = Glob('*.c')
|
||||
CPPPATH = [cwd]
|
||||
|
||||
if (GetDepend('LPKG_USING_LVGL_VSCODE')):
|
||||
list = os.listdir(cwd)
|
||||
for d in list:
|
||||
path = os.path.join(cwd, d)
|
||||
if os.path.isfile(os.path.join(path, 'SConscript')):
|
||||
group = group + SConscript(os.path.join(d, 'SConscript'))
|
||||
|
||||
group = group + DefineGroup('LVGL-port', src, depend = ['AIC_LVGL_DEMO'], CPPPATH = CPPPATH)
|
||||
|
||||
Return('group')
|
||||
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* Copyright (c) 2022-2023, ArtInChip Technology Co., Ltd
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* Authors: Zequan Liang <zequan.liang@artinchip.com>
|
||||
*/
|
||||
|
||||
#include "hello_demo.h"
|
||||
#include "lvgl.h"
|
||||
|
||||
void hello_ui_init()
|
||||
{
|
||||
lv_obj_t *hello_world = lv_img_create(lv_scr_act());
|
||||
lv_img_set_src(hello_world, LVGL_PATH(hello_demo/hello_world.png));
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* Copyright (c) 2022-2023, ArtInChip Technology Co., Ltd
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* Authors: Zequan Liang <zequan.liang@artinchip.com>
|
||||
*/
|
||||
|
||||
#ifndef HELLO_WORLD_DEMO_UI_H
|
||||
#define HELLO_WORLD_DEMO_UI_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "aic_ui.h"
|
||||
|
||||
void hello_ui_init();
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /*extern "C"*/
|
||||
#endif
|
||||
|
||||
#endif //LAUNCHER_UI_H
|
||||
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 9.7 KiB |
@@ -0,0 +1,18 @@
|
||||
from building import *
|
||||
import os
|
||||
|
||||
cwd = GetCurrentDir()
|
||||
group = []
|
||||
src = Glob('*.c')
|
||||
CPPPATH = [cwd]
|
||||
|
||||
if (GetDepend('LPKG_USING_LVGL_VSCODE')):
|
||||
list = os.listdir(cwd)
|
||||
for d in list:
|
||||
path = os.path.join(cwd, d)
|
||||
if os.path.isfile(os.path.join(path, 'SConscript')):
|
||||
group = group + SConscript(os.path.join(d, 'SConscript'))
|
||||
|
||||
group = group + DefineGroup('LVGL-port', src, depend = ['AIC_LVGL_DEMO'], CPPPATH = CPPPATH)
|
||||
|
||||
Return('group')
|
||||
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* Copyright (c) 2022-2023, ArtInChip Technology Co., Ltd
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* Authors: Zequan Liang <zequan.liang@artinchip.com>
|
||||
*/
|
||||
|
||||
#include "aic_ui.h"
|
||||
|
||||
#define USE_HELLO_DEMO
|
||||
|
||||
void vscode_ui_init(void)
|
||||
{
|
||||
#ifdef USE_SLIDE_DEMO
|
||||
extern void slide_ui_init();
|
||||
slide_ui_init();
|
||||
#endif
|
||||
|
||||
#ifdef USE_HELLO_DEMO
|
||||
extern void hello_ui_init();
|
||||
hello_ui_init();
|
||||
#endif
|
||||
}
|
||||
Reference in New Issue
Block a user