This commit is contained in:
刘可亮
2024-06-04 19:00:30 +08:00
parent 990c72f5be
commit 0a13af6a1d
1668 changed files with 342810 additions and 37726 deletions

View File

@@ -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')

View File

@@ -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')

View File

@@ -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));
}

View File

@@ -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.

After

Width:  |  Height:  |  Size: 9.7 KiB

View File

@@ -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')

View File

@@ -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
}