A39-3.9演示demo完成
This commit is contained in:
parent
1fd5ebbff4
commit
c0b6bd173d
|
@ -56388,7 +56388,7 @@
|
||||||
1709781199 e:\mxc_a39\mxc-a39\lv_user_code\include\equipment.h
|
1709781199 e:\mxc_a39\mxc-a39\lv_user_code\include\equipment.h
|
||||||
"lan_str_table.h"
|
"lan_str_table.h"
|
||||||
|
|
||||||
1709893488 source:e:\mxc_a39\mxc-a39\lv_user_code\app\generatormainui.c
|
1709964149 source:e:\mxc_a39\mxc-a39\lv_user_code\app\generatormainui.c
|
||||||
"lvgl.h"
|
"lvgl.h"
|
||||||
"img_def.h"
|
"img_def.h"
|
||||||
"mxc_meter.h"
|
"mxc_meter.h"
|
||||||
|
@ -57750,7 +57750,7 @@
|
||||||
"../misc/lv_txt.h"
|
"../misc/lv_txt.h"
|
||||||
"../misc/lv_math.h"
|
"../misc/lv_math.h"
|
||||||
|
|
||||||
1709891223 source:e:\mxc_a39\mxc-a39\main.c
|
1709973093 source:e:\mxc_a39\mxc-a39\main.c
|
||||||
<stdlib.h>
|
<stdlib.h>
|
||||||
<unistd.h>
|
<unistd.h>
|
||||||
"lvgl/lvgl.h"
|
"lvgl/lvgl.h"
|
||||||
|
|
|
@ -2,97 +2,6 @@
|
||||||
<CodeBlocks_layout_file>
|
<CodeBlocks_layout_file>
|
||||||
<FileVersion major="1" minor="0" />
|
<FileVersion major="1" minor="0" />
|
||||||
<ActiveTarget name="Debug" />
|
<ActiveTarget name="Debug" />
|
||||||
<File name="lv_user_code\include\language_table.h" open="0" top="0" tabpos="4" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="140" topLine="306" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lv_drivers\indev\mouse.h" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="519" topLine="16" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lvgl\src\widgets\lv_bar.h" open="0" top="0" tabpos="22" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="1829" topLine="55" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lvgl\src\core\lv_refr.c" open="0" top="0" tabpos="26" split="0" active="1" splitpos="0" zoom_1="1" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="6684" topLine="203" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lv_user_code\resource\lan_str_table.c" open="0" top="0" tabpos="5" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="20" topLine="72" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lv_drv_conf.h" open="0" top="0" tabpos="13" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="4281" topLine="102" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lvgl\src\lv_misc\lv_area.h" open="0" top="0" tabpos="2" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="212" topLine="0" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lvgl\examples\porting\lv_port_indev_template.c" open="0" top="0" tabpos="5" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="8201" topLine="288" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lvgl\src\misc\lv_anim.c" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="3241" topLine="101" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lvgl\src\extra\widgets\meter\lv_meter.h" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="5800" topLine="181" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lv_user_code\resource\MXC_MSYAHEI_CT_bpp4_18px.c" open="0" top="0" tabpos="4" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="35049" topLine="814" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lvgl\src\extra\widgets\tileview\lv_tileview.c" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="3585" topLine="101" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lvgl\src\extra\widgets\colorwheel\lv_colorwheel.h" open="0" top="0" tabpos="6" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="1261" topLine="27" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lv_user_code\resource\HarmonyOS_Sans_SC_Medium_32px.c" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="330" topLine="0" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lv_examples\src\lv_demo_music\README.md" open="0" top="0" tabpos="6" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="402" topLine="0" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lv_user_code\app\GeneratorMainUI.c" open="1" top="1" tabpos="2" split="0" active="1" splitpos="0" zoom_1="1" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="36557" topLine="542" />
|
|
||||||
</Cursor>
|
|
||||||
<Folding>
|
|
||||||
<Collapse line="21" />
|
|
||||||
<Collapse line="57" />
|
|
||||||
<Collapse line="93" />
|
|
||||||
<Collapse line="444" />
|
|
||||||
</Folding>
|
|
||||||
</File>
|
|
||||||
<File name="lvgl\src\widgets\lv_label.c" open="0" top="0" tabpos="5" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="3538" topLine="104" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lv_user_code\app\mxc_meter.c" open="0" top="0" tabpos="3" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
<File name="lv_user_code\app\mxc_meter.c" open="0" top="0" tabpos="3" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
<Cursor>
|
<Cursor>
|
||||||
<Cursor1 position="65" topLine="0" />
|
<Cursor1 position="65" topLine="0" />
|
||||||
|
@ -106,174 +15,9 @@
|
||||||
<Collapse line="224" />
|
<Collapse line="224" />
|
||||||
</Folding>
|
</Folding>
|
||||||
</File>
|
</File>
|
||||||
<File name="lv_user_code\resource\arialuni_field_bbp2_32px.c" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
<File name="lvgl\src\core\lv_refr.c" open="0" top="0" tabpos="26" split="0" active="1" splitpos="0" zoom_1="1" zoom_2="0">
|
||||||
<Cursor>
|
<Cursor>
|
||||||
<Cursor1 position="0" topLine="219" />
|
<Cursor1 position="6684" topLine="203" />
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lv_drivers\indev\keyboard.h" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="440" topLine="14" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lv_examples\lv_apps\benchmark\benchmark.h" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="209" topLine="0" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lvgl\src\extra\widgets\list\lv_list.c" open="0" top="0" tabpos="28" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="4407" topLine="126" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lvgl\src\widgets\lv_arc.h" open="0" top="0" tabpos="10" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="3840" topLine="119" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lvgl\src\misc\lv_mem.c" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="2687" topLine="113" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lvgl\src\core\lv_obj_class.h" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="829" topLine="33" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lvgl\src\misc\lv_anim.h" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="106" topLine="0" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lvgl\src\core\lv_group.c" open="0" top="0" tabpos="4" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="4737" topLine="156" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lv_user_code\include\equipment.h" open="0" top="0" tabpos="4" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="338" topLine="0" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lvgl\src\core\lv_indev_scroll.c" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="1704" topLine="40" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lvgl\src\core\lv_obj_tree.c" open="0" top="0" tabpos="4" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="7222" topLine="261" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lv_user_code\include\setting_page.h" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="70" topLine="0" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lvgl\src\widgets\lv_objx_templ.c" open="0" top="0" tabpos="9" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="103" topLine="0" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lvgl\src\extra\widgets\colorwheel\lv_colorwheel.c" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="2430" topLine="45" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lvgl\src\hal\lv_hal_disp.c" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="9497" topLine="299" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lvgl\src\misc\lv_area.h" open="0" top="0" tabpos="9" split="0" active="1" splitpos="0" zoom_1="1" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="6611" topLine="230" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lv_demo_conf.h" open="0" top="0" tabpos="3" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="1154" topLine="22" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lvgl\src\core\lv_obj_scroll.h" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="6015" topLine="153" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lv_user_code\resource\MXC_FZHZGB_CT_bpp4_18px.c" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="0" topLine="39" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lv_drivers\win32drv\win32drv.c" open="0" top="0" tabpos="12" split="0" active="1" splitpos="0" zoom_1="3" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="11567" topLine="608" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lvgl\src\lv_objx\lv_canvas.h" open="0" top="0" tabpos="4" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="2499" topLine="96" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lvgl\src\font\lv_font.h" open="0" top="0" tabpos="3" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="5829" topLine="232" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lvgl\src\core\lv_obj_style.h" open="0" top="0" tabpos="17" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="4997" topLine="139" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lvgl\src\core\lv_obj_class.c" open="0" top="0" tabpos="12" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="1009" topLine="40" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lvgl\examples\scroll\lv_example_scroll.h" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="488" topLine="0" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lv_drivers\win_drv.h" open="0" top="0" tabpos="10" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="585" topLine="14" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lvgl\src\extra\widgets\tileview\lv_tileview.h" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="862" topLine="0" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lvgl\examples\lv_examples.h" open="0" top="0" tabpos="8" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="0" topLine="0" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lv_user_code\include\lan_str_table.h" open="0" top="0" tabpos="6" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="1631" topLine="21" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lvgl\src\core\lv_event.h" open="0" top="0" tabpos="28" split="0" active="1" splitpos="0" zoom_1="1" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="6995" topLine="128" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lv_drivers\display\monitor.h" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="289" topLine="31" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lv_user_code\resource\HarmonyOS_number_50px.c" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="0" topLine="159" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lv_user_code\include\mxc_meter.h" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="3202" topLine="0" />
|
|
||||||
</Cursor>
|
</Cursor>
|
||||||
</File>
|
</File>
|
||||||
<File name="lvgl\examples\widgets\textarea\lv_example_textarea_1.c" open="0" top="0" tabpos="2" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
<File name="lvgl\examples\widgets\textarea\lv_example_textarea_1.c" open="0" top="0" tabpos="2" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
|
@ -281,19 +25,19 @@
|
||||||
<Cursor1 position="126" topLine="0" />
|
<Cursor1 position="126" topLine="0" />
|
||||||
</Cursor>
|
</Cursor>
|
||||||
</File>
|
</File>
|
||||||
<File name="lvgl\examples\styles\lv_example_style_1.c" open="0" top="0" tabpos="3" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
<File name="lv_user_code\include\equipment.h" open="0" top="0" tabpos="4" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
<Cursor>
|
<Cursor>
|
||||||
<Cursor1 position="223" topLine="3" />
|
<Cursor1 position="338" topLine="0" />
|
||||||
</Cursor>
|
</Cursor>
|
||||||
</File>
|
</File>
|
||||||
<File name="lvgl\src\misc\lv_mem.h" open="0" top="0" tabpos="13" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
<File name="lvgl\src\extra\widgets\animimg\lv_animimg.c" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
<Cursor>
|
<Cursor>
|
||||||
<Cursor1 position="1695" topLine="70" />
|
<Cursor1 position="2532" topLine="27" />
|
||||||
</Cursor>
|
</Cursor>
|
||||||
</File>
|
</File>
|
||||||
<File name="lvgl\src\widgets\lv_slider.h" open="0" top="0" tabpos="21" split="0" active="1" splitpos="0" zoom_1="5" zoom_2="0">
|
<File name="lv_drivers\win_drv.h" open="0" top="0" tabpos="10" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
<Cursor>
|
<Cursor>
|
||||||
<Cursor1 position="1855" topLine="66" />
|
<Cursor1 position="585" topLine="14" />
|
||||||
</Cursor>
|
</Cursor>
|
||||||
</File>
|
</File>
|
||||||
<File name="lvgl\src\misc\lv_style.h" open="0" top="0" tabpos="5" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
<File name="lvgl\src\misc\lv_style.h" open="0" top="0" tabpos="5" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
|
@ -301,22 +45,9 @@
|
||||||
<Cursor1 position="10133" topLine="288" />
|
<Cursor1 position="10133" topLine="288" />
|
||||||
</Cursor>
|
</Cursor>
|
||||||
</File>
|
</File>
|
||||||
<File name="lvgl\src\widgets\lv_img.c" open="0" top="0" tabpos="11" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
<File name="lvgl\src\widgets\lv_label.c" open="0" top="0" tabpos="5" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
<Cursor>
|
<Cursor>
|
||||||
<Cursor1 position="1431" topLine="30" />
|
<Cursor1 position="3538" topLine="104" />
|
||||||
</Cursor>
|
|
||||||
<Folding>
|
|
||||||
<Collapse line="69" />
|
|
||||||
</Folding>
|
|
||||||
</File>
|
|
||||||
<File name="lvgl\src\extra\widgets\animimg\lv_animimg.c" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="2532" topLine="27" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lvgl\src\widgets\lv_bar.c" open="0" top="0" tabpos="23" split="0" active="1" splitpos="0" zoom_1="3" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="3069" topLine="98" />
|
|
||||||
</Cursor>
|
</Cursor>
|
||||||
</File>
|
</File>
|
||||||
<File name="lvgl\src\core\lv_obj.h" open="0" top="0" tabpos="20" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
<File name="lvgl\src\core\lv_obj.h" open="0" top="0" tabpos="20" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
|
@ -329,118 +60,127 @@
|
||||||
<Cursor1 position="4491" topLine="139" />
|
<Cursor1 position="4491" topLine="139" />
|
||||||
</Cursor>
|
</Cursor>
|
||||||
</File>
|
</File>
|
||||||
<File name="lvgl\lv_conf_template.h" open="0" top="0" tabpos="3" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
<File name="lv_user_code\resource\arialuni_field_bbp2_32px.c" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
<Cursor>
|
<Cursor>
|
||||||
<Cursor1 position="3931" topLine="89" />
|
<Cursor1 position="0" topLine="219" />
|
||||||
</Cursor>
|
</Cursor>
|
||||||
</File>
|
</File>
|
||||||
<File name="lv_examples\src\lv_demo_widgets\lv_demo_widgets.h" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
<File name="lv_demo_conf.h" open="0" top="0" tabpos="3" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
<Cursor>
|
<Cursor>
|
||||||
<Cursor1 position="403" topLine="14" />
|
<Cursor1 position="1154" topLine="22" />
|
||||||
</Cursor>
|
</Cursor>
|
||||||
</File>
|
</File>
|
||||||
<File name="lvgl\src\core\lv_obj_style_gen.c" open="0" top="0" tabpos="16" split="0" active="1" splitpos="0" zoom_1="3" zoom_2="0">
|
<File name="lvgl\src\extra\widgets\meter\lv_meter.h" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
<Cursor>
|
<Cursor>
|
||||||
<Cursor1 position="10034" topLine="310" />
|
<Cursor1 position="5800" topLine="181" />
|
||||||
</Cursor>
|
</Cursor>
|
||||||
</File>
|
</File>
|
||||||
<File name="lvgl\examples\widgets\btnmatrix\lv_example_btnmatrix_1.c" open="0" top="0" tabpos="5" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="311" topLine="0" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lvgl\src\misc\lv_fs.c" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="3619" topLine="148" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lvgl\examples\widgets\switch\lv_example_switch_1.c" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="164" topLine="0" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lv_examples\src\lv_demo_music\lv_demo_music.c" open="0" top="0" tabpos="2" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="1941" topLine="90" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lv_user_code\app\img_basic.c" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="2037" topLine="0" />
|
|
||||||
</Cursor>
|
|
||||||
<Folding>
|
|
||||||
<Collapse line="5" />
|
|
||||||
<Collapse line="29" />
|
|
||||||
</Folding>
|
|
||||||
</File>
|
|
||||||
<File name="lvgl\examples\widgets\btn\lv_example_btn_3.c" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
<File name="lvgl\examples\widgets\btn\lv_example_btn_3.c" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
<Cursor>
|
<Cursor>
|
||||||
<Cursor1 position="66" topLine="21" />
|
<Cursor1 position="66" topLine="21" />
|
||||||
</Cursor>
|
</Cursor>
|
||||||
</File>
|
</File>
|
||||||
<File name="lvgl\src\misc\lv_printf.h" open="0" top="0" tabpos="6" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="2580" topLine="48" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lvgl\lvgl.h" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="361" topLine="0" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lvgl\src\widgets\lv_arc.c" open="0" top="0" tabpos="2" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="14929" topLine="534" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lv_examples\src\lv_demo_music\lv_demo_music_main.c" open="0" top="0" tabpos="3" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="20691" topLine="558" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lv_examples\src\lv_demo_stress\lv_demo_stress.c" open="0" top="0" tabpos="2" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="136" topLine="0" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lvgl\src\draw\lv_draw_img.c" open="0" top="0" tabpos="5" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
<File name="lvgl\src\draw\lv_draw_img.c" open="0" top="0" tabpos="5" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
<Cursor>
|
<Cursor>
|
||||||
<Cursor1 position="15577" topLine="423" />
|
<Cursor1 position="15577" topLine="423" />
|
||||||
</Cursor>
|
</Cursor>
|
||||||
</File>
|
</File>
|
||||||
<File name="main.c" open="1" top="0" tabpos="1" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
<File name="lv_user_code\resource\HarmonyOS_Sans_SC_Medium_32px.c" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
<Cursor>
|
<Cursor>
|
||||||
<Cursor1 position="2404" topLine="69" />
|
<Cursor1 position="330" topLine="0" />
|
||||||
</Cursor>
|
</Cursor>
|
||||||
</File>
|
</File>
|
||||||
<File name="lvgl\src\misc\lv_color.h" open="0" top="0" tabpos="4" split="0" active="1" splitpos="0" zoom_1="-1" zoom_2="0">
|
<File name="lvgl\src\misc\lv_mem.c" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
<Cursor>
|
<Cursor>
|
||||||
<Cursor1 position="22001" topLine="561" />
|
<Cursor1 position="2687" topLine="113" />
|
||||||
</Cursor>
|
</Cursor>
|
||||||
</File>
|
</File>
|
||||||
<File name="lv_user_code\include\img_def.h" open="0" top="0" tabpos="9" split="0" active="1" splitpos="0" zoom_1="1" zoom_2="0">
|
<File name="lvgl\src\extra\widgets\list\lv_list.c" open="0" top="0" tabpos="28" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
<Cursor>
|
<Cursor>
|
||||||
<Cursor1 position="1515" topLine="6" />
|
<Cursor1 position="4407" topLine="126" />
|
||||||
</Cursor>
|
</Cursor>
|
||||||
</File>
|
</File>
|
||||||
<File name="lvgl\src\core\lv_obj_style_gen.h" open="0" top="0" tabpos="15" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
<File name="lvgl\lv_conf_template.h" open="0" top="0" tabpos="3" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
<Cursor>
|
<Cursor>
|
||||||
<Cursor1 position="23360" topLine="572" />
|
<Cursor1 position="3931" topLine="89" />
|
||||||
</Cursor>
|
</Cursor>
|
||||||
</File>
|
</File>
|
||||||
<File name="lvgl\src\widgets\lv_img.h" open="0" top="0" tabpos="10" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
<File name="lv_user_code\include\lan_str_table.h" open="0" top="0" tabpos="6" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
<Cursor>
|
<Cursor>
|
||||||
<Cursor1 position="1437" topLine="42" />
|
<Cursor1 position="1631" topLine="21" />
|
||||||
</Cursor>
|
</Cursor>
|
||||||
</File>
|
</File>
|
||||||
<File name="lvgl\src\core\lv_obj_draw.c" open="0" top="0" tabpos="25" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
<File name="lvgl\src\misc\lv_anim.c" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
<Cursor>
|
<Cursor>
|
||||||
<Cursor1 position="0" topLine="315" />
|
<Cursor1 position="3241" topLine="101" />
|
||||||
</Cursor>
|
</Cursor>
|
||||||
</File>
|
</File>
|
||||||
<File name="lv_examples\src\lv_demo_music\lv_demo_music_list.c" open="0" top="0" tabpos="8" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
<File name="lvgl\src\widgets\lv_img.c" open="0" top="0" tabpos="11" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
<Cursor>
|
<Cursor>
|
||||||
<Cursor1 position="1223" topLine="38" />
|
<Cursor1 position="1431" topLine="30" />
|
||||||
|
</Cursor>
|
||||||
|
<Folding>
|
||||||
|
<Collapse line="69" />
|
||||||
|
</Folding>
|
||||||
|
</File>
|
||||||
|
<File name="lv_user_code\include\setting_page.h" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="70" topLine="0" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="lv_conf.h" open="0" top="0" tabpos="19" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="16431" topLine="480" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="lvgl\src\lv_draw\lv_draw_img.h" open="0" top="0" tabpos="5" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="6355" topLine="138" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="lvgl\src\core\lv_obj_style_gen.c" open="0" top="0" tabpos="16" split="0" active="1" splitpos="0" zoom_1="3" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="10034" topLine="310" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="lvgl\src\misc\lv_area.h" open="0" top="0" tabpos="9" split="0" active="1" splitpos="0" zoom_1="1" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="6611" topLine="230" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="lvgl\src\extra\widgets\tileview\lv_tileview.h" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="862" topLine="0" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="lv_drivers\display\monitor.h" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="289" topLine="31" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="lv_examples\src\lv_demo_music\lv_demo_music_main.c" open="0" top="0" tabpos="3" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="20691" topLine="558" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="lvgl\src\extra\widgets\meter\lv_meter.c" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="4743" topLine="122" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="lvgl\src\widgets\lv_arc.h" open="0" top="0" tabpos="10" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="3840" topLine="119" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="lvgl\examples\widgets\switch\lv_example_switch_1.c" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="164" topLine="0" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="lv_user_code\resource\MXC_MSYAHEI_CT_bpp4_18px.c" open="0" top="0" tabpos="4" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="35049" topLine="814" />
|
||||||
</Cursor>
|
</Cursor>
|
||||||
</File>
|
</File>
|
||||||
<File name="lv_user_code\hal\hal_key_handle.c" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
<File name="lv_user_code\hal\hal_key_handle.c" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
|
@ -454,54 +194,29 @@
|
||||||
<Collapse line="68" />
|
<Collapse line="68" />
|
||||||
</Folding>
|
</Folding>
|
||||||
</File>
|
</File>
|
||||||
<File name="lvgl\src\misc\lv_printf.c" open="0" top="0" tabpos="7" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="4923" topLine="144" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lvgl\src\core\lv_obj_style.c" open="0" top="0" tabpos="19" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="17456" topLine="476" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lvgl\src\misc\lv_anim_timeline.h" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="2274" topLine="41" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lv_conf.h" open="0" top="0" tabpos="19" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="16431" topLine="480" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lvgl\src\core\lv_group.h" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="721" topLine="0" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lv_user_code\mode\spde_ipc.h" open="0" top="0" tabpos="7" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="223" topLine="0" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lvgl\src\lv_draw\lv_draw_img.h" open="0" top="0" tabpos="5" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="6355" topLine="138" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lvgl\src\lv_misc\lv_anim.h" open="0" top="0" tabpos="2" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
<File name="lvgl\src\lv_misc\lv_anim.h" open="0" top="0" tabpos="2" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
<Cursor>
|
<Cursor>
|
||||||
<Cursor1 position="1444" topLine="24" />
|
<Cursor1 position="1444" topLine="24" />
|
||||||
</Cursor>
|
</Cursor>
|
||||||
</File>
|
</File>
|
||||||
<File name="lvgl\src\core\lv_obj_pos.c" open="0" top="0" tabpos="24" split="0" active="1" splitpos="0" zoom_1="2" zoom_2="0">
|
<File name="lvgl\src\widgets\lv_bar.c" open="0" top="0" tabpos="23" split="0" active="1" splitpos="0" zoom_1="3" zoom_2="0">
|
||||||
<Cursor>
|
<Cursor>
|
||||||
<Cursor1 position="10445" topLine="350" />
|
<Cursor1 position="3069" topLine="98" />
|
||||||
</Cursor>
|
</Cursor>
|
||||||
</File>
|
</File>
|
||||||
<File name="lvgl\src\gpu\lv_gpu_stm32_dma2d.h" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
<File name="lv_drv_conf.h" open="0" top="0" tabpos="13" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
<Cursor>
|
<Cursor>
|
||||||
<Cursor1 position="3087" topLine="78" />
|
<Cursor1 position="4281" topLine="102" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="lvgl\src\core\lv_obj_class.h" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="829" topLine="33" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="lv_user_code\include\img_def.h" open="0" top="0" tabpos="9" split="0" active="1" splitpos="0" zoom_1="1" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="1515" topLine="6" />
|
||||||
</Cursor>
|
</Cursor>
|
||||||
</File>
|
</File>
|
||||||
<File name="lvgl\examples\scroll\lv_example_scroll_3.c" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
<File name="lvgl\examples\scroll\lv_example_scroll_3.c" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
|
@ -509,19 +224,308 @@
|
||||||
<Cursor1 position="699" topLine="0" />
|
<Cursor1 position="699" topLine="0" />
|
||||||
</Cursor>
|
</Cursor>
|
||||||
</File>
|
</File>
|
||||||
<File name="lvgl\examples\widgets\win\lv_example_win_1.c" open="0" top="0" tabpos="3" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="113" topLine="0" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lvgl\src\extra\widgets\meter\lv_meter.c" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="4743" topLine="122" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="lv_examples\src\lv_demo_widgets\lv_demo_widgets.c" open="0" top="0" tabpos="2" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
<File name="lv_examples\src\lv_demo_widgets\lv_demo_widgets.c" open="0" top="0" tabpos="2" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
<Cursor>
|
<Cursor>
|
||||||
<Cursor1 position="45741" topLine="976" />
|
<Cursor1 position="45741" topLine="976" />
|
||||||
</Cursor>
|
</Cursor>
|
||||||
</File>
|
</File>
|
||||||
|
<File name="lvgl\src\core\lv_obj_scroll.h" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="6015" topLine="153" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="lvgl\src\widgets\lv_slider.h" open="0" top="0" tabpos="21" split="0" active="1" splitpos="0" zoom_1="5" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="1855" topLine="66" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="lv_user_code\mode\spde_ipc.h" open="0" top="0" tabpos="7" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="223" topLine="0" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="lvgl\src\gpu\lv_gpu_stm32_dma2d.h" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="3087" topLine="78" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="lv_drivers\indev\keyboard.h" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="440" topLine="14" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="lvgl\examples\scroll\lv_example_scroll.h" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="488" topLine="0" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="lv_user_code\app\img_basic.c" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="2037" topLine="0" />
|
||||||
|
</Cursor>
|
||||||
|
<Folding>
|
||||||
|
<Collapse line="5" />
|
||||||
|
<Collapse line="29" />
|
||||||
|
</Folding>
|
||||||
|
</File>
|
||||||
|
<File name="lvgl\src\misc\lv_printf.c" open="0" top="0" tabpos="7" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="4923" topLine="144" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="lvgl\src\core\lv_group.h" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="721" topLine="0" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="lv_user_code\include\language_table.h" open="0" top="0" tabpos="4" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="140" topLine="306" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="lvgl\src\misc\lv_anim_timeline.h" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="2274" topLine="41" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="lvgl\src\widgets\lv_bar.h" open="0" top="0" tabpos="22" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="1829" topLine="55" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="lvgl\src\core\lv_event.h" open="0" top="0" tabpos="28" split="0" active="1" splitpos="0" zoom_1="1" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="6995" topLine="128" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="lv_examples\src\lv_demo_music\lv_demo_music.c" open="0" top="0" tabpos="2" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="1941" topLine="90" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="lvgl\src\core\lv_obj_style.c" open="0" top="0" tabpos="19" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="17456" topLine="476" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="lvgl\src\font\lv_font.h" open="0" top="0" tabpos="3" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="5829" topLine="232" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="lvgl\src\extra\widgets\colorwheel\lv_colorwheel.c" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="2430" topLine="45" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="lv_examples\src\lv_demo_widgets\lv_demo_widgets.h" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="403" topLine="14" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="lvgl\src\core\lv_obj_class.c" open="0" top="0" tabpos="12" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="1009" topLine="40" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="lvgl\src\misc\lv_printf.h" open="0" top="0" tabpos="6" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="2580" topLine="48" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="lvgl\src\widgets\lv_objx_templ.c" open="0" top="0" tabpos="9" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="103" topLine="0" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="lvgl\examples\lv_examples.h" open="0" top="0" tabpos="8" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="0" topLine="0" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="lv_user_code\resource\HarmonyOS_number_50px.c" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="0" topLine="159" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="lv_user_code\app\GeneratorMainUI.c" open="1" top="1" tabpos="2" split="0" active="1" splitpos="0" zoom_1="1" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="48216" topLine="686" />
|
||||||
|
</Cursor>
|
||||||
|
<Folding>
|
||||||
|
<Collapse line="21" />
|
||||||
|
<Collapse line="57" />
|
||||||
|
<Collapse line="94" />
|
||||||
|
<Collapse line="131" />
|
||||||
|
<Collapse line="167" />
|
||||||
|
<Collapse line="319" />
|
||||||
|
<Collapse line="529" />
|
||||||
|
<Collapse line="855" />
|
||||||
|
</Folding>
|
||||||
|
</File>
|
||||||
|
<File name="lvgl\src\lv_misc\lv_area.h" open="0" top="0" tabpos="2" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="212" topLine="0" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="lvgl\examples\widgets\btnmatrix\lv_example_btnmatrix_1.c" open="0" top="0" tabpos="5" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="311" topLine="0" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="lvgl\src\core\lv_group.c" open="0" top="0" tabpos="4" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="4737" topLine="156" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="lvgl\src\misc\lv_anim.h" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="106" topLine="0" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="lvgl\src\widgets\lv_img.h" open="0" top="0" tabpos="10" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="1437" topLine="42" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="lvgl\src\hal\lv_hal_disp.c" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="9497" topLine="299" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="lv_user_code\resource\MXC_FZHZGB_CT_bpp4_18px.c" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="0" topLine="39" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="lvgl\src\lv_objx\lv_canvas.h" open="0" top="0" tabpos="4" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="2499" topLine="96" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="lvgl\src\core\lv_obj_pos.c" open="0" top="0" tabpos="24" split="0" active="1" splitpos="0" zoom_1="2" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="10445" topLine="350" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="lvgl\examples\porting\lv_port_indev_template.c" open="0" top="0" tabpos="5" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="8201" topLine="288" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="lv_drivers\win32drv\win32drv.c" open="0" top="0" tabpos="12" split="0" active="1" splitpos="0" zoom_1="3" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="11567" topLine="608" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="lvgl\src\core\lv_obj_tree.c" open="0" top="0" tabpos="4" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="7222" topLine="261" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="lvgl\examples\widgets\win\lv_example_win_1.c" open="0" top="0" tabpos="3" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="113" topLine="0" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="lvgl\src\core\lv_obj_style_gen.h" open="0" top="0" tabpos="15" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="23360" topLine="572" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="lvgl\src\misc\lv_mem.h" open="0" top="0" tabpos="13" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="1695" topLine="70" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="lv_user_code\resource\lan_str_table.c" open="0" top="0" tabpos="5" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="20" topLine="72" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="lvgl\src\core\lv_obj_draw.c" open="0" top="0" tabpos="25" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="0" topLine="315" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="lv_user_code\include\mxc_meter.h" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="3202" topLine="0" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="lvgl\lvgl.h" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="361" topLine="0" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="lvgl\src\core\lv_obj_style.h" open="0" top="0" tabpos="17" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="4997" topLine="139" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="lvgl\src\extra\widgets\tileview\lv_tileview.c" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="3585" topLine="101" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="lv_drivers\indev\mouse.h" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="519" topLine="16" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="lv_examples\src\lv_demo_music\lv_demo_music_list.c" open="0" top="0" tabpos="8" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="1223" topLine="38" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="lv_examples\src\lv_demo_stress\lv_demo_stress.c" open="0" top="0" tabpos="2" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="136" topLine="0" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="main.c" open="1" top="0" tabpos="1" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="2392" topLine="54" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="lvgl\examples\styles\lv_example_style_1.c" open="0" top="0" tabpos="3" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="223" topLine="3" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="lv_examples\src\lv_demo_music\README.md" open="0" top="0" tabpos="6" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="402" topLine="0" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="lvgl\src\core\lv_indev_scroll.c" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="1704" topLine="40" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="lvgl\src\widgets\lv_arc.c" open="0" top="0" tabpos="2" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="14929" topLine="534" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="lvgl\src\misc\lv_color.h" open="0" top="0" tabpos="4" split="0" active="1" splitpos="0" zoom_1="-1" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="22001" topLine="561" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="lv_examples\lv_apps\benchmark\benchmark.h" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="209" topLine="0" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="lvgl\src\misc\lv_fs.c" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="3619" topLine="148" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="lvgl\src\extra\widgets\colorwheel\lv_colorwheel.h" open="0" top="0" tabpos="6" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="1261" topLine="27" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
</CodeBlocks_layout_file>
|
</CodeBlocks_layout_file>
|
||||||
|
|
|
@ -82,7 +82,8 @@ static void WinKey_event_GtorToErr_handle(lv_event_t* e)
|
||||||
pTime_refresh_timer = NULL;
|
pTime_refresh_timer = NULL;
|
||||||
}
|
}
|
||||||
//主界面进入到类型界面
|
//主界面进入到类型界面
|
||||||
Generator_SubUI_ERROR_src_win(get_root_win());
|
// Generator_SubUI_ERROR_src_win(get_root_win());
|
||||||
|
Generator_test1_src_win(get_root_win());
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
@ -106,6 +107,79 @@ static void WinKey_event_ErrToMain_handle(lv_event_t* e)
|
||||||
key_code = (uint8_t)*key;
|
key_code = (uint8_t)*key;
|
||||||
printf("key_code = 0x%02x . code = 0x%02d \n", key_code, code);
|
printf("key_code = 0x%02x . code = 0x%02d \n", key_code, code);
|
||||||
|
|
||||||
|
switch (key_code)
|
||||||
|
{
|
||||||
|
case LV_KEY_W:
|
||||||
|
printf("LV_KEY_ENTER.\n");
|
||||||
|
//close_ui_refresh_timer();
|
||||||
|
close_all_win();
|
||||||
|
|
||||||
|
if(pTime_refresh_timer!=NULL){
|
||||||
|
lv_timer_del(pTime_refresh_timer);
|
||||||
|
pTime_refresh_timer = NULL;
|
||||||
|
}
|
||||||
|
//主界面进入到类型界面
|
||||||
|
// Generator_src_win(get_root_win());
|
||||||
|
Generator_test1_src_win(get_root_win());
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
static void test_win1_handle(lv_event_t* e)
|
||||||
|
{
|
||||||
|
lv_event_code_t code = lv_event_get_code(e);
|
||||||
|
uint8_t key_code = 0;
|
||||||
|
|
||||||
|
uint32_t *key = lv_event_get_param(e);
|
||||||
|
key_code = (uint8_t)*key;
|
||||||
|
|
||||||
|
printf("=============test_win1_handle==========.\n");
|
||||||
|
if (code == LV_EVENT_KEY)
|
||||||
|
{
|
||||||
|
|
||||||
|
uint32_t *key = lv_event_get_param(e);
|
||||||
|
key_code = (uint8_t)*key;
|
||||||
|
// printf("key_code = 0x%02x . code = 0x%02d \n", key_code, code);
|
||||||
|
|
||||||
|
switch (key_code)
|
||||||
|
{
|
||||||
|
case LV_KEY_W:
|
||||||
|
printf("LV_KEY_ENTER.\n");
|
||||||
|
//close_ui_refresh_timer();
|
||||||
|
close_all_win();
|
||||||
|
|
||||||
|
if(pTime_refresh_timer!=NULL){
|
||||||
|
lv_timer_del(pTime_refresh_timer);
|
||||||
|
pTime_refresh_timer = NULL;
|
||||||
|
}
|
||||||
|
//主界面进入到类型界面
|
||||||
|
Generator_test2_src_win(get_root_win());
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
static void test_win2_handle(lv_event_t* e)
|
||||||
|
{
|
||||||
|
lv_event_code_t code = lv_event_get_code(e);
|
||||||
|
uint8_t key_code = 0;
|
||||||
|
|
||||||
|
uint32_t *key = lv_event_get_param(e);
|
||||||
|
key_code = (uint8_t)*key;
|
||||||
|
|
||||||
|
printf("=============test_win2_handle==========.\n");
|
||||||
|
if (code == LV_EVENT_KEY)
|
||||||
|
{
|
||||||
|
|
||||||
|
uint32_t *key = lv_event_get_param(e);
|
||||||
|
key_code = (uint8_t)*key;
|
||||||
|
// printf("key_code = 0x%02x . code = 0x%02d \n", key_code, code);
|
||||||
|
|
||||||
switch (key_code)
|
switch (key_code)
|
||||||
{
|
{
|
||||||
case LV_KEY_W:
|
case LV_KEY_W:
|
||||||
|
@ -126,6 +200,7 @@ static void WinKey_event_ErrToMain_handle(lv_event_t* e)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/******************3.定时器******************/
|
/******************3.定时器******************/
|
||||||
void refresh_MainUItimer_cb(lv_timer_t* pTimer)
|
void refresh_MainUItimer_cb(lv_timer_t* pTimer)
|
||||||
{
|
{
|
||||||
|
@ -179,6 +254,16 @@ void refresh_MainUItimer_cb(lv_timer_t* pTimer)
|
||||||
lv_label_set_text_fmt(pPercentNum, "%d", frequency_num);
|
lv_label_set_text_fmt(pPercentNum, "%d", frequency_num);
|
||||||
lv_label_set_text_fmt(pPowerNum, "%d", power);
|
lv_label_set_text_fmt(pPowerNum, "%d", power);
|
||||||
|
|
||||||
|
if((time_num/10)%2==0){
|
||||||
|
lv_obj_clear_flag(img_bt,LV_OBJ_FLAG_HIDDEN);
|
||||||
|
lv_obj_clear_flag(img_power,LV_OBJ_FLAG_HIDDEN);
|
||||||
|
lv_obj_clear_flag(img_error,LV_OBJ_FLAG_HIDDEN);
|
||||||
|
}else{
|
||||||
|
lv_obj_add_flag(img_bt,LV_OBJ_FLAG_HIDDEN);
|
||||||
|
lv_obj_add_flag(img_power,LV_OBJ_FLAG_HIDDEN);
|
||||||
|
lv_obj_add_flag(img_error,LV_OBJ_FLAG_HIDDEN);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
speed+=100;
|
speed+=100;
|
||||||
if(speed >=10000)
|
if(speed >=10000)
|
||||||
|
@ -379,7 +464,7 @@ void Generator_src_win(lv_obj_t * scr_parent_main)
|
||||||
// 10
|
// 10
|
||||||
lv_obj_t* pbar_Oilcolor = lv_bar_create(MainUI_win);
|
lv_obj_t* pbar_Oilcolor = lv_bar_create(MainUI_win);
|
||||||
lv_bar_set_value(pbar_Oilcolor, 10, LV_ANIM_OFF);
|
lv_bar_set_value(pbar_Oilcolor, 10, LV_ANIM_OFF);
|
||||||
lv_obj_set_size(pbar_Oilcolor, 150, 37);
|
lv_obj_set_size(pbar_Oilcolor, 150, 35);
|
||||||
lv_obj_align(pbar_Oilcolor, LV_ALIGN_TOP_LEFT, 60, 240);
|
lv_obj_align(pbar_Oilcolor, LV_ALIGN_TOP_LEFT, 60, 240);
|
||||||
lv_obj_add_style(pbar_Oilcolor, &style, LV_PART_INDICATOR);
|
lv_obj_add_style(pbar_Oilcolor, &style, LV_PART_INDICATOR);
|
||||||
lv_obj_set_style_bg_color(pbar_Oilcolor, lv_color_black(), LV_PART_MAIN);
|
lv_obj_set_style_bg_color(pbar_Oilcolor, lv_color_black(), LV_PART_MAIN);
|
||||||
|
@ -767,25 +852,6 @@ void Generator_SubUI_Gtor_src_win(lv_obj_t * scr_parent_main)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void roller_refresh(lv_timer_t *t){
|
|
||||||
lv_obj_t *parent = t->user_data;
|
|
||||||
if(!lv_obj_is_valid(parent)){
|
|
||||||
printf("parent lv_obj_is_valid fail.\n");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if(parent ==NULL){
|
|
||||||
printf("parent ==NULL\n");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
uint8_t num = lv_roller_get_selected(parent);
|
|
||||||
printf("num=%d .\r\n",num);
|
|
||||||
num++;
|
|
||||||
lv_roller_set_selected(parent, num, LV_ANIM_OFF);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void Generator_SubUI_ERROR_src_win(lv_obj_t * scr_parent_main)
|
void Generator_SubUI_ERROR_src_win(lv_obj_t * scr_parent_main)
|
||||||
{
|
{
|
||||||
// lv_obj_t * scr_parent_main = get_root_win();
|
// lv_obj_t * scr_parent_main = get_root_win();
|
||||||
|
@ -801,72 +867,24 @@ void Generator_SubUI_ERROR_src_win(lv_obj_t * scr_parent_main)
|
||||||
lv_obj_clear_flag(pSubUI_ERROR_win, LV_OBJ_FLAG_SCROLLABLE);
|
lv_obj_clear_flag(pSubUI_ERROR_win, LV_OBJ_FLAG_SCROLLABLE);
|
||||||
|
|
||||||
printf("enter Error_SubUI!\n");
|
printf("enter Error_SubUI!\n");
|
||||||
//// lv_obj_t* pPanel_SubUI_Img = NULL; //定义图片指针
|
// lv_obj_t* pPanel_SubUI_Img = NULL; //定义图片指针
|
||||||
// lv_img_cache_invalidate_src(NULL); //将缓存全部清除
|
lv_img_cache_invalidate_src(NULL); //将缓存全部清除
|
||||||
//
|
|
||||||
// //加载图像框架
|
|
||||||
// lv_obj_t*pPanel_SubUI_Img = lv_img_big_create(pSubUI_ERROR_win, panel_Error_SubUI_src, 40, 46, 6, 0);
|
|
||||||
//
|
|
||||||
// //逆变器故障代码label Inverter type
|
|
||||||
// lv_obj_t * pLabel_Inverter_Err = lv_label_create(pSubUI_ERROR_win);
|
|
||||||
// lv_obj_set_style_text_font(pLabel_Inverter_Err, LV_FONT_MXC_MSYAHEI_CT_18PX, LV_STATE_DEFAULT);
|
|
||||||
// lv_label_set_text(pLabel_Inverter_Err, "逆变器故障代码");
|
|
||||||
// lv_obj_align(pLabel_Inverter_Err, LV_ALIGN_TOP_LEFT, 178, 10);
|
|
||||||
//
|
|
||||||
// //反拖故障代码
|
|
||||||
// lv_obj_t * pLabel_Reverse_Err = lv_label_create(pSubUI_ERROR_win);
|
|
||||||
// lv_obj_set_style_text_font(pLabel_Reverse_Err, LV_FONT_MXC_MSYAHEI_CT_18PX, LV_STATE_DEFAULT);
|
|
||||||
// lv_label_set_text(pLabel_Reverse_Err, "反拖故障代码");
|
|
||||||
// lv_obj_align(pLabel_Reverse_Err, LV_ALIGN_TOP_LEFT, 187, 154);
|
|
||||||
|
|
||||||
|
//加载图像框架
|
||||||
|
lv_obj_t*pPanel_SubUI_Img = lv_img_big_create(pSubUI_ERROR_win, panel_Error_SubUI_src, 40, 46, 6, 0);
|
||||||
|
|
||||||
|
//逆变器故障代码label Inverter type
|
||||||
|
lv_obj_t * pLabel_Inverter_Err = lv_label_create(pSubUI_ERROR_win);
|
||||||
|
lv_obj_set_style_text_font(pLabel_Inverter_Err, LV_FONT_MXC_MSYAHEI_CT_18PX, LV_STATE_DEFAULT);
|
||||||
|
lv_label_set_text(pLabel_Inverter_Err, "逆变器故障代码");
|
||||||
|
lv_obj_align(pLabel_Inverter_Err, LV_ALIGN_TOP_LEFT, 178, 10);
|
||||||
|
|
||||||
|
//反拖故障代码
|
||||||
lv_obj_t * pLabel_Reverse_Err = lv_label_create(pSubUI_ERROR_win);
|
lv_obj_t * pLabel_Reverse_Err = lv_label_create(pSubUI_ERROR_win);
|
||||||
lv_obj_set_style_text_font(pLabel_Reverse_Err, LV_FONT_MXC_MSYAHEI_CT_18PX, LV_STATE_DEFAULT);
|
lv_obj_set_style_text_font(pLabel_Reverse_Err, LV_FONT_MXC_MSYAHEI_CT_18PX, LV_STATE_DEFAULT);
|
||||||
lv_label_set_text(pLabel_Reverse_Err, "反拖故障代码");
|
lv_label_set_text(pLabel_Reverse_Err, "反拖故障代码");
|
||||||
lv_obj_align(pLabel_Reverse_Err, LV_ALIGN_TOP_LEFT, 187, 154);
|
lv_obj_align(pLabel_Reverse_Err, LV_ALIGN_TOP_LEFT, 187, 154);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
static lv_style_t style;
|
|
||||||
lv_style_init(&style);
|
|
||||||
lv_style_set_bg_color(&style, lv_color_black());
|
|
||||||
lv_style_set_text_color(&style, lv_color_white());
|
|
||||||
lv_style_set_border_width(&style, 0);
|
|
||||||
lv_style_set_pad_all(&style, 0);
|
|
||||||
lv_obj_add_style(lv_scr_act(), &style, 0);
|
|
||||||
|
|
||||||
lv_obj_t *roller1 = lv_roller_create(pSubUI_ERROR_win);
|
|
||||||
lv_obj_align(roller1, LV_ALIGN_TOP_LEFT, 69, 84);
|
|
||||||
|
|
||||||
lv_obj_add_style(roller1,&style,0);
|
|
||||||
lv_obj_set_style_text_font(roller1, LV_FONT_MXC_MSYAHEI_CT_18PX, LV_STATE_DEFAULT);
|
|
||||||
lv_roller_set_options(roller1,
|
|
||||||
"JAAAAAAA\n"
|
|
||||||
"FBBBBBB\n"
|
|
||||||
"MC\n"
|
|
||||||
"ADDDD\n"
|
|
||||||
"MEEEEEEE\n"
|
|
||||||
"JFFFFFFFFFFF\n"
|
|
||||||
"JGGGG\n"
|
|
||||||
"AHHHHHHHHHHHH\n"
|
|
||||||
"SIIIII\n"
|
|
||||||
"OJJJ\n"
|
|
||||||
"NKKKKKKKK\n"
|
|
||||||
"DLLLL",
|
|
||||||
LV_ROLLER_MODE_INFINITE);
|
|
||||||
//LV_ROLLER_MODE_NORMAL);//正常滚动
|
|
||||||
lv_roller_set_visible_row_count(roller1, 3);
|
|
||||||
lv_obj_center(roller1);
|
|
||||||
|
|
||||||
lv_timer_t * time_refresh_timer = lv_timer_create(roller_refresh,1000,roller1);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//将GtorUI放到按键编组中,相应按钮时间,切换到Err界面
|
//将GtorUI放到按键编组中,相应按钮时间,切换到Err界面
|
||||||
lv_obj_t* pDemo_group = get_key_group();
|
lv_obj_t* pDemo_group = get_key_group();
|
||||||
lv_group_add_obj(pDemo_group, pSubUI_ERROR_win);
|
lv_group_add_obj(pDemo_group, pSubUI_ERROR_win);
|
||||||
|
@ -878,10 +896,336 @@ void Generator_SubUI_ERROR_src_win(lv_obj_t * scr_parent_main)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void roller1_refresh(lv_timer_t *t){
|
||||||
|
lv_obj_t *parent = t->user_data;
|
||||||
|
if(!lv_obj_is_valid(parent)){
|
||||||
|
printf("parent lv_obj_is_valid fail.\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if(parent ==NULL){
|
||||||
|
printf("parent ==NULL\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
lv_obj_t * fault_codes1 = lv_obj_get_child(parent,0);
|
||||||
|
lv_obj_t * fault_codes2 = lv_obj_get_child(parent,1);
|
||||||
|
|
||||||
|
lv_obj_t * roller1 = lv_obj_get_child(fault_codes1,0);
|
||||||
|
lv_obj_t * roller2 = lv_obj_get_child(fault_codes2,0);
|
||||||
|
|
||||||
|
uint8_t num1 = lv_roller_get_selected(roller1);
|
||||||
|
uint8_t num2 = lv_roller_get_selected(roller1);
|
||||||
|
printf("roller1_refresh num1=%d ,num2=%d .\r\n",num1,num2);
|
||||||
|
num1++;
|
||||||
|
num2++;
|
||||||
|
lv_roller_set_selected(roller1, num1, LV_ANIM_OFF);
|
||||||
|
lv_roller_set_selected(roller2, num2, LV_ANIM_OFF);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void roller2_refresh(lv_timer_t *t){
|
||||||
|
lv_obj_t *parent = t->user_data;
|
||||||
|
if(!lv_obj_is_valid(parent)){
|
||||||
|
printf("parent lv_obj_is_valid fail.\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if(parent ==NULL){
|
||||||
|
printf("parent ==NULL\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
lv_obj_t * fault_codes1 = lv_obj_get_child(parent,2);
|
||||||
|
lv_obj_t * fault_codes2 = lv_obj_get_child(parent,3);
|
||||||
|
|
||||||
|
lv_obj_t * roller1 = lv_obj_get_child(fault_codes1,0);
|
||||||
|
lv_obj_t * roller2 = lv_obj_get_child(fault_codes2,0);
|
||||||
|
|
||||||
|
uint8_t num1 = lv_roller_get_selected(roller1);
|
||||||
|
uint8_t num2 = lv_roller_get_selected(roller1);
|
||||||
|
printf("roller2_refresh num1=%d ,num2=%d .\r\n",num1,num2);
|
||||||
|
num1++;
|
||||||
|
num2++;
|
||||||
|
lv_roller_set_selected(roller1, num1, LV_ANIM_OFF);
|
||||||
|
lv_roller_set_selected(roller2, num2, LV_ANIM_OFF);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void Generator_test1_src_win(lv_obj_t * scr_parent_main)
|
||||||
|
{
|
||||||
|
// lv_obj_t * scr_parent_main = get_root_win();
|
||||||
|
|
||||||
|
lv_obj_t* pSubUI_ERROR_win = lv_obj_create(scr_parent_main);
|
||||||
|
lv_obj_set_scrollbar_mode(pSubUI_ERROR_win, LV_SCROLLBAR_MODE_OFF); //关闭滑轮功能
|
||||||
|
lv_obj_set_size(pSubUI_ERROR_win, LV_PCT(100), LV_PCT(100)); //设置主界面100%显示
|
||||||
|
lv_obj_set_style_pad_all(pSubUI_ERROR_win, 0, 0); //
|
||||||
|
lv_obj_set_style_radius(pSubUI_ERROR_win, 0, 0); //圆角大小为0
|
||||||
|
lv_obj_set_style_border_width(pSubUI_ERROR_win, 0, LV_PART_MAIN); //设置边界宽度为主窗口默认宽度
|
||||||
|
lv_obj_set_style_border_color(pSubUI_ERROR_win, lv_color_black(), 0); //设置边界为全黑
|
||||||
|
lv_obj_set_style_bg_color(pSubUI_ERROR_win, lv_color_black(), 0); //设置背景为全黑
|
||||||
|
lv_obj_clear_flag(pSubUI_ERROR_win, LV_OBJ_FLAG_SCROLLABLE);
|
||||||
|
|
||||||
|
printf("enter Error_SubUI!\n");
|
||||||
|
|
||||||
|
static lv_style_t frame_style;
|
||||||
|
lv_style_init(&frame_style);
|
||||||
|
|
||||||
|
/*Set a background color and a radius*/
|
||||||
|
lv_style_set_radius(&frame_style, 20);
|
||||||
|
lv_style_set_bg_opa(&frame_style, LV_OPA_COVER);
|
||||||
|
lv_style_set_bg_color(&frame_style, lv_color_hex(0x000000));
|
||||||
|
lv_style_set_border_width(&frame_style, 2);
|
||||||
|
lv_style_set_border_color(&frame_style, lv_color_hex(0xffffff));
|
||||||
|
|
||||||
|
|
||||||
|
lv_obj_t * fault_codes1 = lv_obj_create(pSubUI_ERROR_win);
|
||||||
|
lv_obj_add_style(fault_codes1, &frame_style, 0);
|
||||||
|
lv_obj_set_size(fault_codes1,LV_PCT(85),110);
|
||||||
|
lv_obj_align(fault_codes1,LV_ALIGN_CENTER,0,-70);
|
||||||
|
lv_obj_clear_flag(fault_codes1, LV_OBJ_FLAG_SCROLLABLE);
|
||||||
|
|
||||||
|
lv_obj_t * fault_codes2 = lv_obj_create(pSubUI_ERROR_win);
|
||||||
|
lv_obj_add_style(fault_codes2, &frame_style, 0);
|
||||||
|
lv_obj_set_size(fault_codes2,LV_PCT(85),110);
|
||||||
|
lv_obj_align(fault_codes2,LV_ALIGN_CENTER,0,80);
|
||||||
|
lv_obj_clear_flag(fault_codes2, LV_OBJ_FLAG_SCROLLABLE);
|
||||||
|
|
||||||
|
//逆变器故障代码label Inverter type
|
||||||
|
lv_obj_t * pLabel_Inverter_Err = lv_label_create(pSubUI_ERROR_win);
|
||||||
|
lv_obj_set_style_text_font(pLabel_Inverter_Err, LV_FONT_MXC_MSYAHEI_CT_18PX, LV_STATE_DEFAULT);
|
||||||
|
lv_label_set_text(pLabel_Inverter_Err, "逆变器故障代码");
|
||||||
|
lv_obj_align(pLabel_Inverter_Err, LV_ALIGN_TOP_LEFT, 178, 10);
|
||||||
|
|
||||||
|
//反拖故障代码
|
||||||
|
lv_obj_t * pLabel_Reverse_Err = lv_label_create(pSubUI_ERROR_win);
|
||||||
|
lv_obj_set_style_text_font(pLabel_Reverse_Err, LV_FONT_MXC_MSYAHEI_CT_18PX, LV_STATE_DEFAULT);
|
||||||
|
lv_label_set_text(pLabel_Reverse_Err, "反拖故障代码");
|
||||||
|
lv_obj_align(pLabel_Reverse_Err, LV_ALIGN_TOP_LEFT, 187, 154);
|
||||||
|
|
||||||
|
static lv_style_t roller_style;
|
||||||
|
lv_style_init(&roller_style);
|
||||||
|
// lv_style_set_bg_color(&roller_style, lv_color_black());
|
||||||
|
lv_style_set_bg_color(&roller_style, lv_color_hex(0x000000));
|
||||||
|
lv_style_set_text_color(&roller_style, lv_color_white());
|
||||||
|
lv_style_set_border_width(&roller_style, 0);
|
||||||
|
lv_style_set_pad_all(&roller_style, 0);
|
||||||
|
|
||||||
|
lv_obj_t *roller1 = lv_roller_create(fault_codes1);
|
||||||
|
lv_obj_set_size(roller1,LV_PCT(100),LV_PCT(70));
|
||||||
|
lv_obj_add_style(roller1,&roller_style,0);
|
||||||
|
|
||||||
|
lv_obj_set_style_bg_opa(roller1, LV_OPA_TRANSP, LV_PART_SELECTED);
|
||||||
|
lv_obj_set_style_text_color(roller1,lv_color_hex(0xff0000),LV_PART_SELECTED);
|
||||||
|
|
||||||
|
lv_obj_set_style_text_font(roller1, LV_FONT_MXC_MSYAHEI_CT_18PX, LV_STATE_DEFAULT);
|
||||||
|
lv_roller_set_options(roller1,
|
||||||
|
"0001输出短路\n"
|
||||||
|
"0002直流母线高\n"
|
||||||
|
"0003直流母线低\n"
|
||||||
|
"0004输出电压高\n"
|
||||||
|
"0005输出电压低\n"
|
||||||
|
"0006IGBT温度高\n"
|
||||||
|
"0007输出过流\n"
|
||||||
|
"0008发动机转速丢失\n"
|
||||||
|
"0009单片机温度高\n"
|
||||||
|
"0010硬件峰值电流保护\n"
|
||||||
|
"0011基准电压错误\n"
|
||||||
|
"0012END",
|
||||||
|
LV_ROLLER_MODE_INFINITE);
|
||||||
|
// LV_ROLLER_MODE_NORMAL);//正常滚动
|
||||||
|
lv_roller_set_visible_row_count(roller1, 3);
|
||||||
|
lv_obj_center(roller1);
|
||||||
|
lv_roller_set_selected(roller1, 1, LV_ANIM_OFF);
|
||||||
|
|
||||||
|
// pTime_refresh_timer = lv_timer_create(roller_refresh,2000,roller1);
|
||||||
|
|
||||||
|
// lv_obj_t * list = lv_list_create(fault_codes2);
|
||||||
|
// lv_obj_add_style(list,&roller_style,0);
|
||||||
|
// lv_obj_set_size(list, LV_PCT(100), LV_PCT(100));
|
||||||
|
// lv_obj_center(list);
|
||||||
|
// lv_obj_set_align(list,LV_ALIGN_CENTER);
|
||||||
|
//
|
||||||
|
// for(uint8_t btn_cnt = 1; btn_cnt <= 2; btn_cnt++) {
|
||||||
|
// char buf[32];
|
||||||
|
// lv_snprintf(buf, sizeof(buf), "Track %d", (int)btn_cnt);
|
||||||
|
// lv_list_add_btn(list, LV_SYMBOL_AUDIO, buf);
|
||||||
|
// }
|
||||||
|
|
||||||
|
|
||||||
|
lv_obj_t *roller2 = lv_roller_create(fault_codes2);
|
||||||
|
lv_obj_set_size(roller2,LV_PCT(100),LV_PCT(70));
|
||||||
|
lv_obj_add_style(roller2,&roller_style,0);
|
||||||
|
// lv_obj_set_style_bg_opa(roller2, LV_OPA_TRANSP, LV_PART_SELECTED);//
|
||||||
|
|
||||||
|
lv_obj_set_style_text_font(roller2, LV_FONT_MXC_MSYAHEI_CT_18PX, LV_STATE_DEFAULT);
|
||||||
|
lv_roller_set_options(roller2,
|
||||||
|
"0001\n"
|
||||||
|
"0002\n"
|
||||||
|
"0003\n"
|
||||||
|
"0004\n"
|
||||||
|
"0005\n"
|
||||||
|
"0006\n"
|
||||||
|
"0007\n"
|
||||||
|
"0008\n"
|
||||||
|
"0009\n"
|
||||||
|
"0010\n"
|
||||||
|
"0011\n"
|
||||||
|
"0012",
|
||||||
|
LV_ROLLER_MODE_INFINITE);
|
||||||
|
// LV_ROLLER_MODE_NORMAL);//正常滚动
|
||||||
|
lv_roller_set_visible_row_count(roller2, 3);
|
||||||
|
lv_obj_center(roller2);
|
||||||
|
lv_roller_set_selected(roller2, 1, LV_ANIM_OFF);
|
||||||
|
|
||||||
|
pTime_refresh_timer = lv_timer_create(roller1_refresh,2000,pSubUI_ERROR_win);
|
||||||
|
|
||||||
|
|
||||||
|
//将GtorUI放到按键编组中,相应按钮时间,切换到Err界面
|
||||||
|
lv_obj_t* pDemo_group = get_key_group();
|
||||||
|
lv_group_add_obj(pDemo_group, pSubUI_ERROR_win);
|
||||||
|
|
||||||
|
lv_obj_add_event_cb(pSubUI_ERROR_win, test_win1_handle, LV_EVENT_KEY, NULL);
|
||||||
|
}
|
||||||
|
|
||||||
|
void Generator_test2_src_win(lv_obj_t * scr_parent_main)
|
||||||
|
{
|
||||||
|
// lv_obj_t * scr_parent_main = get_root_win();
|
||||||
|
|
||||||
|
lv_obj_t* pSubUI_ERROR_win = lv_obj_create(scr_parent_main);
|
||||||
|
lv_obj_set_scrollbar_mode(pSubUI_ERROR_win, LV_SCROLLBAR_MODE_OFF); //关闭滑轮功能
|
||||||
|
lv_obj_set_size(pSubUI_ERROR_win, LV_PCT(100), LV_PCT(100)); //设置主界面100%显示
|
||||||
|
lv_obj_set_style_pad_all(pSubUI_ERROR_win, 0, 0); //
|
||||||
|
lv_obj_set_style_radius(pSubUI_ERROR_win, 0, 0); //圆角大小为0
|
||||||
|
lv_obj_set_style_border_width(pSubUI_ERROR_win, 0, LV_PART_MAIN); //设置边界宽度为主窗口默认宽度
|
||||||
|
lv_obj_set_style_border_color(pSubUI_ERROR_win, lv_color_black(), 0); //设置边界为全黑
|
||||||
|
lv_obj_set_style_bg_color(pSubUI_ERROR_win, lv_color_black(), 0); //设置背景为全黑
|
||||||
|
lv_obj_clear_flag(pSubUI_ERROR_win, LV_OBJ_FLAG_SCROLLABLE);
|
||||||
|
|
||||||
|
printf("enter Error_SubUI!\n");
|
||||||
|
|
||||||
|
static lv_style_t frame_style;
|
||||||
|
lv_style_init(&frame_style);
|
||||||
|
|
||||||
|
/*Set a background color and a radius*/
|
||||||
|
lv_style_set_radius(&frame_style, 20);
|
||||||
|
lv_style_set_bg_opa(&frame_style, LV_OPA_COVER);
|
||||||
|
lv_style_set_bg_color(&frame_style, lv_color_hex(0x4C96C7));
|
||||||
|
lv_style_set_border_width(&frame_style, 2);
|
||||||
|
lv_style_set_border_color(&frame_style, lv_color_hex(0xffffff));
|
||||||
|
|
||||||
|
lv_obj_t * labet_view1 = lv_obj_create(pSubUI_ERROR_win);
|
||||||
|
lv_obj_add_style(labet_view1, &frame_style, 0);
|
||||||
|
lv_obj_set_style_radius(labet_view1,12,0);
|
||||||
|
lv_obj_set_size(labet_view1,180,37);
|
||||||
|
lv_obj_set_pos(labet_view1, 35, 12);
|
||||||
|
lv_obj_clear_flag(labet_view1, LV_OBJ_FLAG_SCROLLABLE);
|
||||||
|
|
||||||
|
lv_obj_t * labet_view2 = lv_obj_create(pSubUI_ERROR_win);
|
||||||
|
lv_obj_add_style(labet_view2, &frame_style, 0);
|
||||||
|
lv_obj_set_style_radius(labet_view2,12,0);
|
||||||
|
lv_obj_set_size(labet_view2, 180,37);
|
||||||
|
lv_obj_set_pos(labet_view2, 267, 12);
|
||||||
|
lv_obj_clear_flag(labet_view2, LV_OBJ_FLAG_SCROLLABLE);
|
||||||
|
|
||||||
|
lv_obj_t * fault_codes1 = lv_obj_create(pSubUI_ERROR_win);
|
||||||
|
lv_obj_add_style(fault_codes1, &frame_style, 0);
|
||||||
|
lv_obj_set_size(fault_codes1,180,LV_PCT(78));
|
||||||
|
lv_obj_set_pos(fault_codes1, 35, 59);
|
||||||
|
lv_obj_clear_flag(fault_codes1, LV_OBJ_FLAG_SCROLLABLE);
|
||||||
|
|
||||||
|
lv_obj_t * fault_codes2 = lv_obj_create(pSubUI_ERROR_win);
|
||||||
|
lv_obj_add_style(fault_codes2, &frame_style, 0);
|
||||||
|
lv_obj_set_size(fault_codes2, 180,LV_PCT(78));
|
||||||
|
lv_obj_set_pos(fault_codes2, 267, 59);
|
||||||
|
lv_obj_clear_flag(fault_codes2, LV_OBJ_FLAG_SCROLLABLE);
|
||||||
|
|
||||||
|
//逆变器故障代码label Inverter type
|
||||||
|
lv_obj_t * pLabel_Inverter_Err = lv_label_create(labet_view1);
|
||||||
|
lv_obj_set_style_text_font(pLabel_Inverter_Err, LV_FONT_MXC_MSYAHEI_CT_18PX, LV_STATE_DEFAULT);
|
||||||
|
lv_label_set_text(pLabel_Inverter_Err, "逆变器故障代码");
|
||||||
|
lv_obj_center(pLabel_Inverter_Err);
|
||||||
|
|
||||||
|
//反拖故障代码
|
||||||
|
lv_obj_t * pLabel_Reverse_Err = lv_label_create(labet_view2);
|
||||||
|
lv_obj_set_style_text_font(pLabel_Reverse_Err, LV_FONT_MXC_MSYAHEI_CT_18PX, LV_STATE_DEFAULT);
|
||||||
|
lv_label_set_text(pLabel_Reverse_Err, "反拖故障代码");
|
||||||
|
lv_obj_center(pLabel_Reverse_Err);
|
||||||
|
//lv_obj_align(pLabel_Reverse_Err, LV_ALIGN_TOP_LEFT, 187, 154);
|
||||||
|
|
||||||
|
static lv_style_t roller_style;
|
||||||
|
lv_style_init(&roller_style);
|
||||||
|
// lv_style_set_bg_color(&roller_style, lv_color_black());
|
||||||
|
lv_style_set_bg_color(&roller_style, lv_color_hex(0x000000));
|
||||||
|
lv_style_set_bg_opa(&roller_style, 0);
|
||||||
|
lv_style_set_text_color(&roller_style, lv_color_white());
|
||||||
|
lv_style_set_border_width(&roller_style, 0);
|
||||||
|
lv_style_set_pad_all(&roller_style, 0);
|
||||||
|
|
||||||
|
lv_obj_t *roller1 = lv_roller_create(fault_codes1);
|
||||||
|
lv_obj_set_size(roller1,LV_PCT(100),LV_PCT(100));
|
||||||
|
lv_obj_add_style(roller1,&roller_style,0);
|
||||||
|
|
||||||
|
lv_obj_set_style_bg_opa(roller1, LV_OPA_TRANSP, LV_PART_SELECTED);
|
||||||
|
lv_obj_set_style_text_color(roller1,lv_color_hex(0xff0000),LV_PART_SELECTED);
|
||||||
|
|
||||||
|
lv_obj_set_style_text_font(roller1, LV_FONT_MXC_MSYAHEI_CT_18PX, LV_STATE_DEFAULT);
|
||||||
|
lv_roller_set_options(roller1,
|
||||||
|
"输出短路\n"
|
||||||
|
"直流母线高\n"
|
||||||
|
"直流母线低\n"
|
||||||
|
"输出电压高\n"
|
||||||
|
"输出电压低\n"
|
||||||
|
"IGBT温度高\n"
|
||||||
|
"输出过流\n"
|
||||||
|
"发动机转速丢失\n"
|
||||||
|
"单片机温度高\n"
|
||||||
|
"硬件峰值电流保护\n"
|
||||||
|
"基准电压错误\n"
|
||||||
|
"END",
|
||||||
|
LV_ROLLER_MODE_INFINITE);
|
||||||
|
// LV_ROLLER_MODE_NORMAL);//正常滚动
|
||||||
|
lv_roller_set_visible_row_count(roller1, 9);
|
||||||
|
lv_obj_center(roller1);
|
||||||
|
lv_roller_set_selected(roller1, 1, LV_ANIM_OFF);
|
||||||
|
|
||||||
|
// pTime_refresh_timer = lv_timer_create(roller_refresh,2000,roller1);
|
||||||
|
|
||||||
|
lv_obj_t *roller2 = lv_roller_create(fault_codes2);
|
||||||
|
lv_obj_set_size(roller2,LV_PCT(100),LV_PCT(70));
|
||||||
|
lv_obj_add_style(roller2,&roller_style,0);
|
||||||
|
// lv_obj_set_style_text_color(roller1,lv_color_hex(0xff0000),LV_PART_SELECTED);
|
||||||
|
lv_obj_set_style_bg_color(roller2,lv_color_hex(0xff0000),LV_PART_SELECTED);
|
||||||
|
// lv_obj_set_style_bg_opa(roller2, LV_OPA_TRANSP, LV_PART_SELECTED);//
|
||||||
|
|
||||||
|
lv_obj_set_style_text_font(roller2, LV_FONT_MXC_MSYAHEI_CT_18PX, LV_STATE_DEFAULT);
|
||||||
|
lv_roller_set_options(roller2,
|
||||||
|
"低压保护\n"
|
||||||
|
"软件电流保护\n"
|
||||||
|
"硬件电流保护\n"
|
||||||
|
"堵转保护\n"
|
||||||
|
"峰值过流保护\n"
|
||||||
|
"温度故障\n"
|
||||||
|
"点火失败\n"
|
||||||
|
"过压保护\n"
|
||||||
|
"机油故障\n"
|
||||||
|
"END",
|
||||||
|
LV_ROLLER_MODE_INFINITE);
|
||||||
|
// LV_ROLLER_MODE_NORMAL);//正常滚动
|
||||||
|
lv_roller_set_visible_row_count(roller2, 7);
|
||||||
|
lv_obj_center(roller2);
|
||||||
|
lv_roller_set_selected(roller2, 1, LV_ANIM_OFF);
|
||||||
|
|
||||||
|
pTime_refresh_timer = lv_timer_create(roller2_refresh,2000,pSubUI_ERROR_win);
|
||||||
|
|
||||||
|
//将GtorUI放到按键编组中,相应按钮时间,切换到Err界面
|
||||||
|
lv_obj_t* pDemo_group = get_key_group();
|
||||||
|
lv_group_add_obj(pDemo_group, pSubUI_ERROR_win);
|
||||||
|
|
||||||
|
lv_obj_add_event_cb(pSubUI_ERROR_win, test_win2_handle, LV_EVENT_KEY, NULL);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -83,7 +83,7 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR szCmdLi
|
||||||
lv_port_indev_init();
|
lv_port_indev_init();
|
||||||
|
|
||||||
//发电机主界面
|
//发电机主界面
|
||||||
Generator_SubUI_ERROR_src_win(get_root_win());
|
Generator_src_win(get_root_win());
|
||||||
// test_win(get_root_win());
|
// test_win(get_root_win());
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Binary file not shown.
|
@ -27,361 +27,10 @@ Project File Date: 03/08/2024
|
||||||
<h2>Output:</h2>
|
<h2>Output:</h2>
|
||||||
*** Using Compiler 'V6.21', folder: 'C:\Keil_v5\ARM\ARMCLANG\Bin'
|
*** Using Compiler 'V6.21', folder: 'C:\Keil_v5\ARM\ARMCLANG\Bin'
|
||||||
Build target 'Project'
|
Build target 'Project'
|
||||||
compiling app_task.c...
|
|
||||||
compiling A39_app.c...
|
|
||||||
../Src/main.c(140): warning: null passed to a callee that requires a non-null argument [-Wnonnull]
|
|
||||||
140 | fputc('S', NULL);
|
|
||||||
| ^~~~
|
|
||||||
C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\string.h(56): note: expanded from macro 'NULL'
|
|
||||||
56 | #define NULL 0 /* see <stddef.h> */
|
|
||||||
| ^
|
|
||||||
1 warning generated.
|
|
||||||
compiling main.c...
|
|
||||||
compiling diskio.c...
|
|
||||||
compiling app_audio.c...
|
|
||||||
compiling app_at.c...
|
|
||||||
compiling app_ble.c...
|
|
||||||
compiling app_btdm.c...
|
|
||||||
compiling app_bt.c...
|
|
||||||
compiling app_hw.c...
|
|
||||||
compiling app_rpmsg.c...
|
|
||||||
../Src/app_lvgl.c(458): warning: while loop has empty body [-Wempty-body]
|
|
||||||
458 | while(display_dma_ongoing);
|
|
||||||
| ^
|
|
||||||
../Src/app_lvgl.c(458): note: put the semicolon on a separate line to silence this warning
|
|
||||||
1 warning generated.
|
|
||||||
compiling app_lvgl.c...
|
|
||||||
compiling dram_mem.c...
|
compiling dram_mem.c...
|
||||||
compiling user_bt.c...
|
compiling app_audio.c...
|
||||||
compiling ota.c...
|
|
||||||
compiling ota_service.c...
|
|
||||||
compiling system_dwt.c...
|
|
||||||
compiling user_bt_pbap.c...
|
|
||||||
compiling user_bt_a2dp.c...
|
|
||||||
compiling user_bt_call.c...
|
|
||||||
compiling user_bt_voice_recognition.c...
|
|
||||||
compiling elog_port.c...
|
|
||||||
compiling user_bt_common.c...
|
|
||||||
compiling lfs_port.c...
|
|
||||||
compiling batt_full_yellow.c...
|
|
||||||
compiling lv_common_function.c...
|
|
||||||
compiling Number_HarmonyOS_bpp4_16px.c...
|
|
||||||
compiling Number_HarmonyOS_bpp4_12px.c...
|
|
||||||
compiling Number_HarmonyOS_bpp4_44px.c...
|
|
||||||
compiling Number_HarmonyOS_bpp4_36px.c...
|
|
||||||
compiling Number_HarmonyOS_bpp4_20px.c...
|
|
||||||
compiling batt_full_gren.c...
|
|
||||||
compiling fr_lv_dashboard.c...
|
|
||||||
compiling fr_watch.c...
|
|
||||||
compiling fr_guimain.c...
|
|
||||||
compiling lv_msg_event.c...
|
|
||||||
compiling fr_device_pmu_io.c...
|
|
||||||
compiling lv_user_sqlist.c...
|
|
||||||
compiling fr_device_rtc.c...
|
|
||||||
compiling fr_device_encode.c...
|
|
||||||
compiling fr_device_charge.c...
|
|
||||||
compiling fr_device_vbat.c...
|
|
||||||
compiling fr_device_pa.c...
|
|
||||||
compiling fr_device_button.c...
|
|
||||||
compiling btdm_mem.c...
|
|
||||||
compiling controller.c...
|
|
||||||
assembling controller_code_single_ota.s...
|
|
||||||
assembling controller_code_split_ota.s...
|
|
||||||
assembling dsp_code_flash.s...
|
|
||||||
assembling dsp_code_rom.s...
|
|
||||||
compiling host.c...
|
|
||||||
compiling SWD.c...
|
|
||||||
compiling fal_flash_port.c...
|
|
||||||
compiling fdb_app.c...
|
|
||||||
compiling driver_display.c...
|
|
||||||
compiling driver_touchpad.c...
|
|
||||||
compiling driver_sh8601a.c...
|
|
||||||
compiling driver_sh8601z.c...
|
|
||||||
compiling driver_icna3310.c...
|
|
||||||
compiling driver_psram.c...
|
|
||||||
compiling driver_chsc5816.c...
|
|
||||||
compiling IC_W25Qxx.c...
|
|
||||||
compiling chsc6x_main.c...
|
|
||||||
compiling chsc6x_platform.c...
|
|
||||||
compiling chsc6x_comp.c...
|
|
||||||
compiling ext_flash.c...
|
|
||||||
compiling driver_nv3047_rgb.c...
|
|
||||||
compiling rgb565.c...
|
|
||||||
assembling startup_fr30xx.s...
|
|
||||||
compiling driver_nv3041a.c...
|
|
||||||
compiling system_fr30xx.c...
|
|
||||||
compiling driver_dma.c...
|
|
||||||
compiling driver_codec.c...
|
|
||||||
compiling driver_flash.c...
|
|
||||||
compiling driver_frspim.c...
|
|
||||||
compiling driver_gpio.c...
|
|
||||||
compiling driver_i2s.c...
|
|
||||||
compiling driver_ipc.c...
|
|
||||||
compiling driver_i2c.c...
|
|
||||||
compiling driver_pdm.c...
|
|
||||||
compiling driver_pmu.c...
|
|
||||||
compiling driver_qspi.c...
|
|
||||||
compiling driver_sd_card.c...
|
|
||||||
compiling driver_sd.c...
|
|
||||||
compiling driver_spi_master.c...
|
|
||||||
compiling driver_adc.c...
|
|
||||||
compiling driver_uart.c...
|
|
||||||
compiling driver_trng.c...
|
|
||||||
compiling driver_pmu_iwdt.c...
|
|
||||||
compiling driver_timer.c...
|
|
||||||
compiling driver_parallel_interface.c...
|
|
||||||
compiling driver_pwm.c...
|
|
||||||
compiling audio_encoder.c...
|
|
||||||
compiling audio_decoder.c...
|
|
||||||
compiling audio_hw.c...
|
|
||||||
compiling audio_scene.c...
|
|
||||||
compiling algorithm.c...
|
|
||||||
compiling resample.c...
|
|
||||||
compiling codec.c...
|
|
||||||
compiling co_util.c...
|
|
||||||
compiling co_log.c...
|
|
||||||
compiling dsp.c...
|
|
||||||
compiling dsp_mem.c...
|
|
||||||
compiling elog_async.c...
|
|
||||||
compiling elog.c...
|
|
||||||
compiling elog_buf.c...
|
|
||||||
compiling elog_utils.c...
|
|
||||||
compiling ffsystem.c...
|
|
||||||
compiling ffunicode.c...
|
|
||||||
compiling fdb.c...
|
|
||||||
compiling fdb_utils.c...
|
|
||||||
compiling ff.c...
|
|
||||||
compiling fal.c...
|
|
||||||
compiling fdb_kvdb.c...
|
|
||||||
compiling fal_flash.c...
|
|
||||||
compiling fal_partition.c...
|
|
||||||
compiling list.c...
|
|
||||||
compiling timers.c...
|
|
||||||
compiling queue.c...
|
|
||||||
compiling portasm.c...
|
|
||||||
compiling port.c...
|
|
||||||
assembling cpu_context.s...
|
|
||||||
compiling tasks.c...
|
|
||||||
compiling freertos_sleep.c...
|
|
||||||
compiling heap_6.c...
|
|
||||||
compiling heap.c...
|
|
||||||
compiling lfs_util.c...
|
|
||||||
compiling lv_indev.c...
|
|
||||||
compiling lv_refr.c...
|
|
||||||
compiling lfs.c...
|
|
||||||
compiling lv_obj_pos.c...
|
|
||||||
compiling lv_flex.c...
|
|
||||||
compiling lv_bmp.c...
|
|
||||||
compiling lv_ffmpeg.c...
|
|
||||||
compiling lv_grid.c...
|
|
||||||
compiling lv_freetype.c...
|
|
||||||
compiling lv_fs_fatfs.c...
|
|
||||||
compiling lv_fs_posix.c...
|
|
||||||
compiling lv_fs_stdio.c...
|
|
||||||
compiling lv_fs_win32.c...
|
|
||||||
compiling lv_gif.c...
|
|
||||||
compiling gifdec.c...
|
|
||||||
compiling lodepng.c...
|
|
||||||
compiling lv_png.c...
|
|
||||||
compiling lv_qrcode.c...
|
|
||||||
compiling lv_rlottie.c...
|
|
||||||
compiling lv_sjpg.c...
|
|
||||||
compiling tjpgd.c...
|
|
||||||
compiling lv_fragment.c...
|
|
||||||
compiling qrcodegen.c...
|
|
||||||
compiling lv_fragment_manager.c...
|
|
||||||
compiling lv_gridnav.c...
|
|
||||||
compiling lv_ime_pinyin.c...
|
|
||||||
compiling lv_imgfont.c...
|
|
||||||
compiling lv_monkey.c...
|
|
||||||
compiling lv_msg.c...
|
|
||||||
compiling lv_snapshot.c...
|
|
||||||
compiling lv_theme_basic.c...
|
|
||||||
compiling lv_theme_mono.c...
|
|
||||||
compiling lv_animimg.c...
|
|
||||||
compiling lv_theme_default.c...
|
|
||||||
compiling lv_calendar.c...
|
|
||||||
compiling lv_calendar_header_arrow.c...
|
|
||||||
compiling lv_calendar_header_dropdown.c...
|
|
||||||
compiling lv_imgbtn.c...
|
|
||||||
compiling lv_colorwheel.c...
|
|
||||||
compiling lv_chart.c...
|
|
||||||
compiling lv_keyboard.c...
|
|
||||||
compiling lv_led.c...
|
|
||||||
compiling lv_list.c...
|
|
||||||
compiling lv_menu.c...
|
|
||||||
compiling lv_meter.c...
|
|
||||||
compiling lv_msgbox.c...
|
|
||||||
compiling lv_spinner.c...
|
|
||||||
compiling lv_spinbox.c...
|
|
||||||
compiling lv_span.c...
|
|
||||||
compiling lv_tileview.c...
|
|
||||||
compiling lv_tabview.c...
|
|
||||||
compiling lv_win.c...
|
|
||||||
compiling lv_font.c...
|
|
||||||
compiling lv_extra.c...
|
|
||||||
compiling lv_font_dejavu_16_persian_hebrew.c...
|
|
||||||
compiling lv_font_fmt_txt.c...
|
|
||||||
compiling lv_font_montserrat_8.c...
|
|
||||||
compiling lv_font_loader.c...
|
|
||||||
compiling lv_font_montserrat_10.c...
|
|
||||||
compiling lv_font_montserrat_12.c...
|
|
||||||
compiling lv_font_montserrat_12_subpx.c...
|
|
||||||
compiling lv_font_montserrat_14.c...
|
|
||||||
compiling lv_font_montserrat_16.c...
|
|
||||||
compiling lv_font_montserrat_18.c...
|
|
||||||
compiling lv_font_montserrat_20.c...
|
|
||||||
compiling lv_font_montserrat_22.c...
|
|
||||||
compiling lv_font_montserrat_24.c...
|
|
||||||
compiling lv_font_montserrat_26.c...
|
|
||||||
compiling lv_font_montserrat_28_compressed.c...
|
|
||||||
compiling lv_font_montserrat_28.c...
|
|
||||||
compiling lv_font_montserrat_30.c...
|
|
||||||
compiling lv_font_montserrat_32.c...
|
|
||||||
compiling lv_font_montserrat_34.c...
|
|
||||||
compiling lv_font_montserrat_36.c...
|
|
||||||
compiling lv_font_montserrat_38.c...
|
|
||||||
compiling lv_font_montserrat_40.c...
|
|
||||||
compiling lv_font_montserrat_42.c...
|
|
||||||
compiling lv_font_montserrat_44.c...
|
|
||||||
compiling lv_font_montserrat_46.c...
|
|
||||||
compiling lv_font_montserrat_48.c...
|
|
||||||
compiling lv_font_simsun_16_cjk.c...
|
|
||||||
compiling lv_font_unscii_8.c...
|
|
||||||
compiling lv_font_unscii_16.c...
|
|
||||||
compiling lv_hal_indev.c...
|
|
||||||
compiling lv_hal_disp.c...
|
|
||||||
compiling lv_hal_tick.c...
|
|
||||||
compiling lv_anim_timeline.c...
|
|
||||||
compiling lv_anim.c...
|
|
||||||
compiling lv_area.c...
|
|
||||||
compiling lv_async.c...
|
|
||||||
compiling lv_color.c...
|
|
||||||
compiling lv_bidi.c...
|
|
||||||
compiling lv_fs.c...
|
|
||||||
compiling lv_gc.c...
|
|
||||||
compiling lv_ll.c...
|
|
||||||
compiling lv_log.c...
|
|
||||||
compiling lv_math.c...
|
|
||||||
compiling lv_lru.c...
|
|
||||||
compiling lv_mem.c...
|
|
||||||
compiling lv_printf.c...
|
|
||||||
compiling lv_templ.c...
|
|
||||||
compiling lv_style.c...
|
|
||||||
compiling lv_style_gen.c...
|
|
||||||
compiling lv_tlsf.c...
|
|
||||||
compiling lv_timer.c...
|
|
||||||
compiling lv_utils.c...
|
|
||||||
compiling lv_txt_ap.c...
|
|
||||||
compiling lv_txt.c...
|
|
||||||
compiling lv_btn.c...
|
|
||||||
compiling lv_arc.c...
|
|
||||||
compiling lv_bar.c...
|
|
||||||
compiling lv_checkbox.c...
|
|
||||||
compiling lv_canvas.c...
|
|
||||||
compiling lv_btnmatrix.c...
|
|
||||||
compiling lv_img.c...
|
|
||||||
compiling lv_dropdown.c...
|
|
||||||
compiling lv_label.c...
|
|
||||||
compiling lv_objx_templ.c...
|
|
||||||
compiling lv_line.c...
|
|
||||||
compiling lv_slider.c...
|
|
||||||
compiling lv_roller.c...
|
|
||||||
compiling lv_switch.c...
|
|
||||||
compiling lv_table.c...
|
|
||||||
compiling lv_textarea.c...
|
|
||||||
compiling lv_demo_benchmark.c...
|
|
||||||
compiling img_benchmark_cogwheel_alpha16.c...
|
|
||||||
compiling img_benchmark_cogwheel_argb.c...
|
|
||||||
compiling img_benchmark_cogwheel_chroma_keyed.c...
|
|
||||||
compiling img_benchmark_cogwheel_indexed16.c...
|
|
||||||
compiling img_benchmark_cogwheel_rgb.c...
|
|
||||||
compiling img_benchmark_cogwheel_rgb565a8.c...
|
|
||||||
compiling lv_font_bechmark_montserrat_12_compr_az.c.c...
|
|
||||||
compiling lv_font_bechmark_montserrat_16_compr_az.c.c...
|
|
||||||
compiling lv_font_bechmark_montserrat_28_compr_az.c.c...
|
|
||||||
compiling lv_demo_stress.c...
|
|
||||||
compiling img_clothes.c...
|
|
||||||
compiling lv_demo_widgets.c...
|
|
||||||
compiling img_lvgl_logo.c...
|
|
||||||
compiling img_demo_widgets_avatar.c...
|
|
||||||
compiling lv_demo_music.c...
|
|
||||||
compiling lv_demo_music_list.c...
|
|
||||||
compiling lv_demo_music_main.c...
|
|
||||||
compiling img_lv_demo_music_btn_corner_large.c...
|
|
||||||
compiling img_lv_demo_music_btn_list_pause.c...
|
|
||||||
compiling img_lv_demo_music_btn_list_pause_large.c...
|
|
||||||
compiling img_lv_demo_music_btn_list_play.c...
|
|
||||||
compiling img_lv_demo_music_btn_list_play_large.c...
|
|
||||||
compiling img_lv_demo_music_btn_loop.c...
|
|
||||||
compiling img_lv_demo_music_btn_loop_large.c...
|
|
||||||
compiling img_lv_demo_music_btn_next.c...
|
|
||||||
compiling img_lv_demo_music_btn_next_large.c...
|
|
||||||
compiling img_lv_demo_music_btn_pause.c...
|
|
||||||
compiling img_lv_demo_music_btn_pause_large.c...
|
|
||||||
compiling img_lv_demo_music_btn_play.c...
|
|
||||||
compiling img_lv_demo_music_btn_play_large.c...
|
|
||||||
compiling img_lv_demo_music_btn_prev.c...
|
|
||||||
compiling img_lv_demo_music_btn_prev_large.c...
|
|
||||||
compiling img_lv_demo_music_btn_rnd.c...
|
|
||||||
compiling img_lv_demo_music_btn_rnd_large.c...
|
|
||||||
compiling img_lv_demo_music_corner_left_large.c...
|
|
||||||
compiling img_lv_demo_music_corner_left.c...
|
|
||||||
compiling img_lv_demo_music_corner_right.c...
|
|
||||||
compiling img_lv_demo_music_corner_right_large.c...
|
|
||||||
compiling img_lv_demo_music_cover_1_large.c...
|
|
||||||
compiling img_lv_demo_music_cover_1.c...
|
|
||||||
compiling img_lv_demo_music_cover_2.c...
|
|
||||||
compiling img_lv_demo_music_cover_2_large.c...
|
|
||||||
compiling img_lv_demo_music_cover_3.c...
|
|
||||||
compiling img_lv_demo_music_icon_1.c...
|
|
||||||
compiling img_lv_demo_music_cover_3_large.c...
|
|
||||||
compiling img_lv_demo_music_icon_1_large.c...
|
|
||||||
compiling img_lv_demo_music_icon_2_large.c...
|
|
||||||
compiling img_lv_demo_music_icon_2.c...
|
|
||||||
compiling img_lv_demo_music_icon_3.c...
|
|
||||||
compiling img_lv_demo_music_icon_3_large.c...
|
|
||||||
compiling img_lv_demo_music_icon_4.c...
|
|
||||||
compiling img_lv_demo_music_icon_4_large.c...
|
|
||||||
compiling img_lv_demo_music_list_border.c...
|
|
||||||
compiling img_lv_demo_music_list_border_large.c...
|
|
||||||
compiling img_lv_demo_music_logo.c...
|
|
||||||
compiling img_lv_demo_music_slider_knob_large.c...
|
|
||||||
compiling img_lv_demo_music_slider_knob.c...
|
|
||||||
compiling img_lv_demo_music_wave_bottom.c...
|
|
||||||
compiling img_lv_demo_music_wave_bottom_large.c...
|
|
||||||
compiling img_lv_demo_music_wave_top.c...
|
|
||||||
compiling img_lv_demo_music_wave_top_large.c...
|
|
||||||
compiling rpmsg.c...
|
|
||||||
compiling rpmsg_queue.c...
|
|
||||||
compiling rpmsg_lite.c...
|
|
||||||
compiling llist.c...
|
|
||||||
compiling rpmsg_env_freertos.c...
|
|
||||||
compiling virtqueue.c...
|
|
||||||
compiling rpmsg_platform.c...
|
|
||||||
compiling AMS_client.c...
|
|
||||||
compiling ext_flash_program.c...
|
|
||||||
compiling ANCS_AMS_client.c...
|
|
||||||
compiling simple_gatt_service.c...
|
|
||||||
compiling hid_service.c...
|
|
||||||
compiling autonavi_handler.c...
|
|
||||||
compiling autonavi_profile.c...
|
|
||||||
compiling img_basic.c...
|
|
||||||
compiling GeneratorMainUI.c...
|
compiling GeneratorMainUI.c...
|
||||||
compiling Interface.c...
|
compiling user_bt.c...
|
||||||
compiling lan_str_table.c...
|
|
||||||
compiling menu_list.c...
|
|
||||||
compiling mxc_meter.c...
|
|
||||||
compiling spde_ipc.c...
|
|
||||||
compiling MXC_FZHZGB_CT_bpp4_14px.c...
|
|
||||||
compiling MXC_FZHZGB_CT_bpp4_18px.c...
|
|
||||||
compiling MXC_FZHZGB_CT_bpp4_19px.c...
|
|
||||||
compiling MXC_FZHZGB_CT_bpp4_24px.c...
|
|
||||||
compiling MXC_FZHZGB_CT_bpp4_36px.c...
|
|
||||||
compiling MXC_FZHZGB_CT_bpp4_48px.c...
|
|
||||||
compiling MXC_MSYAHEI_CT_bpp4_18px.c...
|
|
||||||
compiling retarget_io.c...
|
|
||||||
compiling MXC_MSYAHEI_CT_bpp4_36px.c...
|
|
||||||
linking...
|
linking...
|
||||||
..\..\..\..\components\tools\keil\xip_flash_turn_key.sct(32): warning: L6329W: Pattern ke_mem.o(RO) only matches removed unused sections.
|
..\..\..\..\components\tools\keil\xip_flash_turn_key.sct(32): warning: L6329W: Pattern ke_mem.o(RO) only matches removed unused sections.
|
||||||
..\..\..\..\components\tools\keil\xip_flash_turn_key.sct(33): warning: L6329W: Pattern audio_decoder.o(RO) only matches removed unused sections.
|
..\..\..\..\components\tools\keil\xip_flash_turn_key.sct(33): warning: L6329W: Pattern audio_decoder.o(RO) only matches removed unused sections.
|
||||||
|
@ -396,14 +45,14 @@ linking...
|
||||||
..\..\..\..\components\tools\keil\xip_flash_turn_key.sct(57): warning: L6329W: Pattern obxalloc.o(ZI) only matches removed unused sections.
|
..\..\..\..\components\tools\keil\xip_flash_turn_key.sct(57): warning: L6329W: Pattern obxalloc.o(ZI) only matches removed unused sections.
|
||||||
..\..\..\..\components\tools\keil\xip_flash_turn_key.sct(58): warning: L6329W: Pattern pbap.o(ZI) only matches removed unused sections.
|
..\..\..\..\components\tools\keil\xip_flash_turn_key.sct(58): warning: L6329W: Pattern pbap.o(ZI) only matches removed unused sections.
|
||||||
..\..\..\..\components\tools\keil\xip_flash_turn_key.sct(59): warning: L6329W: Pattern avrcp.o(ZI) only matches removed unused sections.
|
..\..\..\..\components\tools\keil\xip_flash_turn_key.sct(59): warning: L6329W: Pattern avrcp.o(ZI) only matches removed unused sections.
|
||||||
Program Size: Code=314704 RO-data=165488 RW-data=76504 ZI-data=742792
|
Program Size: Code=316948 RO-data=166164 RW-data=76480 ZI-data=742824
|
||||||
Finished: 0 information, 13 warning and 0 error messages.
|
Finished: 0 information, 13 warning and 0 error messages.
|
||||||
After Build - User command #1: "..\..\..\..\components\tools\keil\post_process.bat" "Project" "E:\MXC_A39\SW\examples\turnkey\lvgl_Dashboard_8080\MDK-ARM\Objects\Project.axf" "C:\Keil_v5\ARM\ARMCLANG\include"
|
After Build - User command #1: "..\..\..\..\components\tools\keil\post_process.bat" "Project" "E:\MXC_A39\SW\examples\turnkey\lvgl_Dashboard_8080\MDK-ARM\Objects\Project.axf" "C:\Keil_v5\ARM\ARMCLANG\include"
|
||||||
20240308
|
20240309
|
||||||
18:59:57.13
|
16:53:13.09
|
||||||
program target with file E:\MXC_A39\SW\examples\turnkey\lvgl_Dashboard_8080\MDK-ARM\output\Project_burn.bin
|
program target with file E:\MXC_A39\SW\examples\turnkey\lvgl_Dashboard_8080\MDK-ARM\output\Project_burn.bin
|
||||||
After Build - User command #2: .\output\fr_keil_after_build.bat
|
After Build - User command #2: .\output\fr_keil_after_build.bat
|
||||||
".\Objects\Project.axf" - 0 Error(s), 15 Warning(s).
|
".\Objects\Project.axf" - 0 Error(s), 13 Warning(s).
|
||||||
|
|
||||||
<h2>Software Packages used:</h2>
|
<h2>Software Packages used:</h2>
|
||||||
|
|
||||||
|
@ -430,7 +79,7 @@ Package Vendor: Keil
|
||||||
|
|
||||||
* Component: Keil::Compiler&ARM Compiler:I/O:STDERR&Breakpoint@1.2.0
|
* Component: Keil::Compiler&ARM Compiler:I/O:STDERR&Breakpoint@1.2.0
|
||||||
Source file: Source/retarget_io.c
|
Source file: Source/retarget_io.c
|
||||||
Build Time Elapsed: 00:01:18
|
Build Time Elapsed: 00:00:27
|
||||||
</pre>
|
</pre>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -54748,7 +54748,7 @@ I (..\..\..\..\components\btdm\include\gatt_defines.h)(0x6507E57B)
|
||||||
I (..\..\..\..\components\btdm\include\gatt_sig_uuid.h)(0x6507E57B)
|
I (..\..\..\..\components\btdm\include\gatt_sig_uuid.h)(0x6507E57B)
|
||||||
I (..\Src\profile\ble_autonavi\autonavi_config.h)(0x658E91E0)
|
I (..\Src\profile\ble_autonavi\autonavi_config.h)(0x658E91E0)
|
||||||
I (..\Src\profile\ble_autonavi\autonavi_handler.h)(0x6584164F)
|
I (..\Src\profile\ble_autonavi\autonavi_handler.h)(0x6584164F)
|
||||||
F (..\Src\A39_app\GeneratorMainUI.c)(0x65EAE58D)(-xc -std=gnu11 --target=arm-arm-none-eabi -mcpu=cortex-m33 -mfpu=fpv5-sp-d16 -mfloat-abi=hard -c
-fno-rtti -funsigned-char -fshort-enums -fshort-wchar
-D__MICROLIB -mlittle-endian -gdwarf-4 -O2 -ffunction-sections -Wno-packed -Wno-missing-variable-declarations -Wno-missing-prototypes -Wno-missing-noreturn -Wno-sign-conversion -Wno-nonportable-include-path -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I ../../../../components/btdm/include -I ../../../../components/drivers/bsp/display -I ../../../../components/drivers/bsp/psram -I ../../../../components/drivers/bsp/spi_flash -I ../../../../components/drivers/bsp/touchpad -I ../../../../components/drivers/cmsis -I ../../../../components/drivers/device/fr30xx -I ../../../../components/drivers/peripheral/Inc -I ../../../../components/modules/audio -I ../../../../components/modules/audio/algorithm -I ../../../../components/modules/audio/codec -I ../../../../components/modules/audio/resample -I ../../../../components/modules/common/include -I ../../../../components/modules/dsp -I ../../../../components/modules/EasyLogger-2.2.0/easylogger/inc -I ../../../../components/modules/ext_flash_program -I ../../../../components/modules/fatfs/source -I ../../../../components/modules/FlashDB/flashdb/inc -I ../../../../components/modules/FlashDB/port/fal/inc -I ../../../../components/modules/FreeRTOS/include -I ../../../../components/modules/FreeRTOS/portable/ARMv8M/non_secure -I ../../../../components/modules/FreeRTOS/portable/ARMv8M/non_secure/portable/GCC/ARM_CM33_NTZ -I ../../../../components/modules/heap -I ../../../../components/modules/littlefs -I ../../../../components/modules/lvgl -I ../../../../components/modules/rpmsg-lite/lib/include -I ../../../../components/modules/rpmsg-lite/lib/include/platform/fr30xx_m33 -I ../../../common/btdm -I ../../../common/flashdb -I ../Inc -I ../Src -I ../Src/lfs_port -I ../Src/lv_app -I ../Src/lv_frame -I ../Src/fr_device -I ../Src/profile/ble_ANCS_AMCS -I ../Src/profile/ble_simple_gatt -I ../Src/profile/ble_hid -I ../Src/fr_bt -I ../../../../components/drivers/bsp/rgb_565 -I ../Src/profile/ble_autonavi
-I./RTE/_Project
-IC:/Users/13669/AppData/Local/Arm/Packs/ARM/CMSIS/5.9.0/CMSIS/Core/Include
-IC:/Users/13669/AppData/Local/Arm/Packs/ARM/CMSIS/5.9.0/Device/ARM/ARMCM33/Include
-D__UVISION_VERSION="539" -D_RTE_ -DARMCM33_DSP_FP -D_RTE_ -DLV_CONF_INCLUDE_SIMPLE -DLV_LVGL_H_INCLUDE_SIMPLE
-o ./objects/generatormainui.o -MD)
|
F (..\Src\A39_app\GeneratorMainUI.c)(0x65EC2365)(-xc -std=gnu11 --target=arm-arm-none-eabi -mcpu=cortex-m33 -mfpu=fpv5-sp-d16 -mfloat-abi=hard -c
-fno-rtti -funsigned-char -fshort-enums -fshort-wchar
-D__MICROLIB -mlittle-endian -gdwarf-4 -O2 -ffunction-sections -Wno-packed -Wno-missing-variable-declarations -Wno-missing-prototypes -Wno-missing-noreturn -Wno-sign-conversion -Wno-nonportable-include-path -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I ../../../../components/btdm/include -I ../../../../components/drivers/bsp/display -I ../../../../components/drivers/bsp/psram -I ../../../../components/drivers/bsp/spi_flash -I ../../../../components/drivers/bsp/touchpad -I ../../../../components/drivers/cmsis -I ../../../../components/drivers/device/fr30xx -I ../../../../components/drivers/peripheral/Inc -I ../../../../components/modules/audio -I ../../../../components/modules/audio/algorithm -I ../../../../components/modules/audio/codec -I ../../../../components/modules/audio/resample -I ../../../../components/modules/common/include -I ../../../../components/modules/dsp -I ../../../../components/modules/EasyLogger-2.2.0/easylogger/inc -I ../../../../components/modules/ext_flash_program -I ../../../../components/modules/fatfs/source -I ../../../../components/modules/FlashDB/flashdb/inc -I ../../../../components/modules/FlashDB/port/fal/inc -I ../../../../components/modules/FreeRTOS/include -I ../../../../components/modules/FreeRTOS/portable/ARMv8M/non_secure -I ../../../../components/modules/FreeRTOS/portable/ARMv8M/non_secure/portable/GCC/ARM_CM33_NTZ -I ../../../../components/modules/heap -I ../../../../components/modules/littlefs -I ../../../../components/modules/lvgl -I ../../../../components/modules/rpmsg-lite/lib/include -I ../../../../components/modules/rpmsg-lite/lib/include/platform/fr30xx_m33 -I ../../../common/btdm -I ../../../common/flashdb -I ../Inc -I ../Src -I ../Src/lfs_port -I ../Src/lv_app -I ../Src/lv_frame -I ../Src/fr_device -I ../Src/profile/ble_ANCS_AMCS -I ../Src/profile/ble_simple_gatt -I ../Src/profile/ble_hid -I ../Src/fr_bt -I ../../../../components/drivers/bsp/rgb_565 -I ../Src/profile/ble_autonavi
-I./RTE/_Project
-IC:/Users/13669/AppData/Local/Arm/Packs/ARM/CMSIS/5.9.0/CMSIS/Core/Include
-IC:/Users/13669/AppData/Local/Arm/Packs/ARM/CMSIS/5.9.0/Device/ARM/ARMCM33/Include
-D__UVISION_VERSION="539" -D_RTE_ -DARMCM33_DSP_FP -D_RTE_ -DLV_CONF_INCLUDE_SIMPLE -DLV_LVGL_H_INCLUDE_SIMPLE
-o ./objects/generatormainui.o -MD)
|
||||||
I (..\..\..\..\components\modules\lvgl\lvgl.h)(0x6507E57B)
|
I (..\..\..\..\components\modules\lvgl\lvgl.h)(0x6507E57B)
|
||||||
I (..\..\..\..\components\modules\lvgl\src\misc\lv_log.h)(0x658D2B64)
|
I (..\..\..\..\components\modules\lvgl\src\misc\lv_log.h)(0x658D2B64)
|
||||||
I (..\..\..\..\components\modules\lvgl\src\misc\..\lv_conf_internal.h)(0x6507E57B)
|
I (..\..\..\..\components\modules\lvgl\src\misc\..\lv_conf_internal.h)(0x6507E57B)
|
||||||
|
|
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
|
@ -16,6 +16,12 @@ static void WinKey_event_GtorToErr_handle(lv_event_t* e);
|
||||||
static void WinKey_event_ErrToMain_handle(lv_event_t* e);
|
static void WinKey_event_ErrToMain_handle(lv_event_t* e);
|
||||||
|
|
||||||
|
|
||||||
|
void roller1_refresh(lv_timer_t *t);
|
||||||
|
void roller2_refresh(lv_timer_t *t);
|
||||||
|
void Generator_test1_src_win(lv_obj_t * scr_parent_main);
|
||||||
|
void Generator_test2_src_win(lv_obj_t * scr_parent_main);
|
||||||
|
|
||||||
|
|
||||||
extern lv_indev_t * indev_keypad;
|
extern lv_indev_t * indev_keypad;
|
||||||
extern lv_group_t * lv_get_keypad_group(void);
|
extern lv_group_t * lv_get_keypad_group(void);
|
||||||
|
|
||||||
|
@ -86,7 +92,8 @@ static void WinKey_event_GtorToErr_handle(lv_event_t* e)
|
||||||
pTime_refresh_timer = NULL;
|
pTime_refresh_timer = NULL;
|
||||||
}
|
}
|
||||||
//主界面进入到类型界面
|
//主界面进入到类型界面
|
||||||
Generator_SubUI_ERROR_src_win(get_root_win());
|
// Generator_SubUI_ERROR_src_win(get_root_win());
|
||||||
|
Generator_test1_src_win(get_root_win());
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
@ -110,6 +117,79 @@ static void WinKey_event_ErrToMain_handle(lv_event_t* e)
|
||||||
key_code = (uint8_t)*key;
|
key_code = (uint8_t)*key;
|
||||||
printf("key_code = 0x%02x . code = 0x%02d \n", key_code, code);
|
printf("key_code = 0x%02x . code = 0x%02d \n", key_code, code);
|
||||||
|
|
||||||
|
switch (key_code)
|
||||||
|
{
|
||||||
|
case LV_KEY_W:
|
||||||
|
printf("LV_KEY_ENTER.\n");
|
||||||
|
//close_ui_refresh_timer();
|
||||||
|
close_all_win();
|
||||||
|
|
||||||
|
if(pTime_refresh_timer!=NULL){
|
||||||
|
lv_timer_del(pTime_refresh_timer);
|
||||||
|
pTime_refresh_timer = NULL;
|
||||||
|
}
|
||||||
|
//主界面进入到类型界面
|
||||||
|
// Generator_src_win(get_root_win());
|
||||||
|
Generator_test1_src_win(get_root_win());
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
static void test_win1_handle(lv_event_t* e)
|
||||||
|
{
|
||||||
|
lv_event_code_t code = lv_event_get_code(e);
|
||||||
|
uint8_t key_code = 0;
|
||||||
|
|
||||||
|
uint32_t *key = lv_event_get_param(e);
|
||||||
|
key_code = (uint8_t)*key;
|
||||||
|
|
||||||
|
printf("=============test_win1_handle==========.\n");
|
||||||
|
if (code == LV_EVENT_KEY)
|
||||||
|
{
|
||||||
|
|
||||||
|
uint32_t *key = lv_event_get_param(e);
|
||||||
|
key_code = (uint8_t)*key;
|
||||||
|
// printf("key_code = 0x%02x . code = 0x%02d \n", key_code, code);
|
||||||
|
|
||||||
|
switch (key_code)
|
||||||
|
{
|
||||||
|
case LV_KEY_W:
|
||||||
|
printf("LV_KEY_ENTER.\n");
|
||||||
|
//close_ui_refresh_timer();
|
||||||
|
close_all_win();
|
||||||
|
|
||||||
|
if(pTime_refresh_timer!=NULL){
|
||||||
|
lv_timer_del(pTime_refresh_timer);
|
||||||
|
pTime_refresh_timer = NULL;
|
||||||
|
}
|
||||||
|
//主界面进入到类型界面
|
||||||
|
Generator_test2_src_win(get_root_win());
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
static void test_win2_handle(lv_event_t* e)
|
||||||
|
{
|
||||||
|
lv_event_code_t code = lv_event_get_code(e);
|
||||||
|
uint8_t key_code = 0;
|
||||||
|
|
||||||
|
uint32_t *key = lv_event_get_param(e);
|
||||||
|
key_code = (uint8_t)*key;
|
||||||
|
|
||||||
|
printf("=============test_win2_handle==========.\n");
|
||||||
|
if (code == LV_EVENT_KEY)
|
||||||
|
{
|
||||||
|
|
||||||
|
uint32_t *key = lv_event_get_param(e);
|
||||||
|
key_code = (uint8_t)*key;
|
||||||
|
// printf("key_code = 0x%02x . code = 0x%02d \n", key_code, code);
|
||||||
|
|
||||||
switch (key_code)
|
switch (key_code)
|
||||||
{
|
{
|
||||||
case LV_KEY_W:
|
case LV_KEY_W:
|
||||||
|
@ -183,6 +263,16 @@ void refresh_MainUItimer_cb(lv_timer_t* pTimer)
|
||||||
lv_label_set_text_fmt(pPercentNum, "%d", frequency_num);
|
lv_label_set_text_fmt(pPercentNum, "%d", frequency_num);
|
||||||
lv_label_set_text_fmt(pPowerNum, "%d", power);
|
lv_label_set_text_fmt(pPowerNum, "%d", power);
|
||||||
|
|
||||||
|
if((time_num/10)%2==0){
|
||||||
|
lv_obj_clear_flag(img_bt,LV_OBJ_FLAG_HIDDEN);
|
||||||
|
lv_obj_clear_flag(img_power,LV_OBJ_FLAG_HIDDEN);
|
||||||
|
lv_obj_clear_flag(img_error,LV_OBJ_FLAG_HIDDEN);
|
||||||
|
}else{
|
||||||
|
lv_obj_add_flag(img_bt,LV_OBJ_FLAG_HIDDEN);
|
||||||
|
lv_obj_add_flag(img_power,LV_OBJ_FLAG_HIDDEN);
|
||||||
|
lv_obj_add_flag(img_error,LV_OBJ_FLAG_HIDDEN);
|
||||||
|
}
|
||||||
|
|
||||||
if(arc_flag%2==0)
|
if(arc_flag%2==0)
|
||||||
arc_num++;
|
arc_num++;
|
||||||
else
|
else
|
||||||
|
@ -387,7 +477,7 @@ void Generator_src_win(lv_obj_t * scr_parent_main)
|
||||||
// 10
|
// 10
|
||||||
lv_obj_t* pbar_Oilcolor = lv_bar_create(MainUI_win);
|
lv_obj_t* pbar_Oilcolor = lv_bar_create(MainUI_win);
|
||||||
lv_bar_set_value(pbar_Oilcolor, 10, LV_ANIM_OFF);
|
lv_bar_set_value(pbar_Oilcolor, 10, LV_ANIM_OFF);
|
||||||
lv_obj_set_size(pbar_Oilcolor, 150, 37);
|
lv_obj_set_size(pbar_Oilcolor, 150, 35);
|
||||||
lv_obj_align(pbar_Oilcolor, LV_ALIGN_TOP_LEFT, 60, 240);
|
lv_obj_align(pbar_Oilcolor, LV_ALIGN_TOP_LEFT, 60, 240);
|
||||||
lv_obj_add_style(pbar_Oilcolor, &style, LV_PART_INDICATOR);
|
lv_obj_add_style(pbar_Oilcolor, &style, LV_PART_INDICATOR);
|
||||||
lv_obj_set_style_bg_color(pbar_Oilcolor, lv_color_black(), LV_PART_MAIN);
|
lv_obj_set_style_bg_color(pbar_Oilcolor, lv_color_black(), LV_PART_MAIN);
|
||||||
|
@ -840,3 +930,345 @@ void Generator_SubUI_ERROR_src_win(lv_obj_t * scr_parent_main)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void roller1_refresh(lv_timer_t *t){
|
||||||
|
lv_obj_t *parent = t->user_data;
|
||||||
|
if(!lv_obj_is_valid(parent)){
|
||||||
|
printf("parent lv_obj_is_valid fail.\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if(parent ==NULL){
|
||||||
|
printf("parent ==NULL\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
lv_obj_t * fault_codes1 = lv_obj_get_child(parent,0);
|
||||||
|
lv_obj_t * fault_codes2 = lv_obj_get_child(parent,1);
|
||||||
|
|
||||||
|
lv_obj_t * roller1 = lv_obj_get_child(fault_codes1,0);
|
||||||
|
lv_obj_t * roller2 = lv_obj_get_child(fault_codes2,0);
|
||||||
|
|
||||||
|
uint8_t num1 = lv_roller_get_selected(roller1);
|
||||||
|
uint8_t num2 = lv_roller_get_selected(roller1);
|
||||||
|
printf("roller1_refresh num1=%d ,num2=%d .\r\n",num1,num2);
|
||||||
|
num1++;
|
||||||
|
num2++;
|
||||||
|
lv_roller_set_selected(roller1, num1, LV_ANIM_OFF);
|
||||||
|
lv_roller_set_selected(roller2, num2, LV_ANIM_OFF);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void roller2_refresh(lv_timer_t *t){
|
||||||
|
lv_obj_t *parent = t->user_data;
|
||||||
|
if(!lv_obj_is_valid(parent)){
|
||||||
|
printf("parent lv_obj_is_valid fail.\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if(parent ==NULL){
|
||||||
|
printf("parent ==NULL\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
lv_obj_t * fault_codes1 = lv_obj_get_child(parent,2);
|
||||||
|
lv_obj_t * fault_codes2 = lv_obj_get_child(parent,3);
|
||||||
|
|
||||||
|
lv_obj_t * roller1 = lv_obj_get_child(fault_codes1,0);
|
||||||
|
lv_obj_t * roller2 = lv_obj_get_child(fault_codes2,0);
|
||||||
|
|
||||||
|
uint8_t num1 = lv_roller_get_selected(roller1);
|
||||||
|
uint8_t num2 = lv_roller_get_selected(roller1);
|
||||||
|
printf("roller2_refresh num1=%d ,num2=%d .\r\n",num1,num2);
|
||||||
|
num1++;
|
||||||
|
num2++;
|
||||||
|
lv_roller_set_selected(roller1, num1, LV_ANIM_OFF);
|
||||||
|
lv_roller_set_selected(roller2, num2, LV_ANIM_OFF);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void Generator_test1_src_win(lv_obj_t * scr_parent_main)
|
||||||
|
{
|
||||||
|
// lv_obj_t * scr_parent_main = get_root_win();
|
||||||
|
|
||||||
|
lv_obj_t* pSubUI_ERROR_win = lv_obj_create(scr_parent_main);
|
||||||
|
lv_obj_set_scrollbar_mode(pSubUI_ERROR_win, LV_SCROLLBAR_MODE_OFF); //关闭滑轮功能
|
||||||
|
lv_obj_set_size(pSubUI_ERROR_win, LV_PCT(100), LV_PCT(100)); //设置主界面100%显示
|
||||||
|
lv_obj_set_style_pad_all(pSubUI_ERROR_win, 0, 0); //
|
||||||
|
lv_obj_set_style_radius(pSubUI_ERROR_win, 0, 0); //圆角大小为0
|
||||||
|
lv_obj_set_style_border_width(pSubUI_ERROR_win, 0, LV_PART_MAIN); //设置边界宽度为主窗口默认宽度
|
||||||
|
lv_obj_set_style_border_color(pSubUI_ERROR_win, lv_color_black(), 0); //设置边界为全黑
|
||||||
|
lv_obj_set_style_bg_color(pSubUI_ERROR_win, lv_color_black(), 0); //设置背景为全黑
|
||||||
|
lv_obj_clear_flag(pSubUI_ERROR_win, LV_OBJ_FLAG_SCROLLABLE);
|
||||||
|
|
||||||
|
printf("enter Error_SubUI!\n");
|
||||||
|
|
||||||
|
static lv_style_t frame_style;
|
||||||
|
lv_style_init(&frame_style);
|
||||||
|
|
||||||
|
/*Set a background color and a radius*/
|
||||||
|
lv_style_set_radius(&frame_style, 20);
|
||||||
|
lv_style_set_bg_opa(&frame_style, LV_OPA_COVER);
|
||||||
|
lv_style_set_bg_color(&frame_style, lv_color_hex(0x000000));
|
||||||
|
lv_style_set_border_width(&frame_style, 2);
|
||||||
|
lv_style_set_border_color(&frame_style, lv_color_hex(0xffffff));
|
||||||
|
|
||||||
|
|
||||||
|
lv_obj_t * fault_codes1 = lv_obj_create(pSubUI_ERROR_win);
|
||||||
|
lv_obj_add_style(fault_codes1, &frame_style, 0);
|
||||||
|
lv_obj_set_size(fault_codes1,LV_PCT(85),110);
|
||||||
|
lv_obj_align(fault_codes1,LV_ALIGN_CENTER,0,-70);
|
||||||
|
lv_obj_clear_flag(fault_codes1, LV_OBJ_FLAG_SCROLLABLE);
|
||||||
|
|
||||||
|
lv_obj_t * fault_codes2 = lv_obj_create(pSubUI_ERROR_win);
|
||||||
|
lv_obj_add_style(fault_codes2, &frame_style, 0);
|
||||||
|
lv_obj_set_size(fault_codes2,LV_PCT(85),110);
|
||||||
|
lv_obj_align(fault_codes2,LV_ALIGN_CENTER,0,80);
|
||||||
|
lv_obj_clear_flag(fault_codes2, LV_OBJ_FLAG_SCROLLABLE);
|
||||||
|
|
||||||
|
//逆变器故障代码label Inverter type
|
||||||
|
lv_obj_t * pLabel_Inverter_Err = lv_label_create(pSubUI_ERROR_win);
|
||||||
|
lv_obj_set_style_text_font(pLabel_Inverter_Err, LV_FONT_MXC_MSYAHEI_CT_18PX, LV_STATE_DEFAULT);
|
||||||
|
lv_label_set_text(pLabel_Inverter_Err, "逆变器故障代码");
|
||||||
|
lv_obj_align(pLabel_Inverter_Err, LV_ALIGN_TOP_LEFT, 178, 10);
|
||||||
|
|
||||||
|
//反拖故障代码
|
||||||
|
lv_obj_t * pLabel_Reverse_Err = lv_label_create(pSubUI_ERROR_win);
|
||||||
|
lv_obj_set_style_text_font(pLabel_Reverse_Err, LV_FONT_MXC_MSYAHEI_CT_18PX, LV_STATE_DEFAULT);
|
||||||
|
lv_label_set_text(pLabel_Reverse_Err, "反拖故障代码");
|
||||||
|
lv_obj_align(pLabel_Reverse_Err, LV_ALIGN_TOP_LEFT, 187, 154);
|
||||||
|
|
||||||
|
static lv_style_t roller_style;
|
||||||
|
lv_style_init(&roller_style);
|
||||||
|
// lv_style_set_bg_color(&roller_style, lv_color_black());
|
||||||
|
lv_style_set_bg_color(&roller_style, lv_color_hex(0x000000));
|
||||||
|
lv_style_set_text_color(&roller_style, lv_color_white());
|
||||||
|
lv_style_set_border_width(&roller_style, 0);
|
||||||
|
lv_style_set_pad_all(&roller_style, 0);
|
||||||
|
|
||||||
|
lv_obj_t *roller1 = lv_roller_create(fault_codes1);
|
||||||
|
lv_obj_set_size(roller1,LV_PCT(100),LV_PCT(70));
|
||||||
|
lv_obj_add_style(roller1,&roller_style,0);
|
||||||
|
|
||||||
|
lv_obj_set_style_bg_opa(roller1, LV_OPA_TRANSP, LV_PART_SELECTED);
|
||||||
|
lv_obj_set_style_text_color(roller1,lv_color_hex(0xff0000),LV_PART_SELECTED);
|
||||||
|
|
||||||
|
lv_obj_set_style_text_font(roller1, LV_FONT_MXC_MSYAHEI_CT_18PX, LV_STATE_DEFAULT);
|
||||||
|
lv_roller_set_options(roller1,
|
||||||
|
"0001输出短路\n"
|
||||||
|
"0002直流母线高\n"
|
||||||
|
"0003直流母线低\n"
|
||||||
|
"0004输出电压高\n"
|
||||||
|
"0005输出电压低\n"
|
||||||
|
"0006IGBT温度高\n"
|
||||||
|
"0007输出过流\n"
|
||||||
|
"0008发动机转速丢失\n"
|
||||||
|
"0009单片机温度高\n"
|
||||||
|
"0010硬件峰值电流保护\n"
|
||||||
|
"0011基准电压错误\n"
|
||||||
|
"0012END",
|
||||||
|
LV_ROLLER_MODE_INFINITE);
|
||||||
|
// LV_ROLLER_MODE_NORMAL);//正常滚动
|
||||||
|
lv_roller_set_visible_row_count(roller1, 3);
|
||||||
|
lv_obj_center(roller1);
|
||||||
|
lv_roller_set_selected(roller1, 1, LV_ANIM_OFF);
|
||||||
|
|
||||||
|
// pTime_refresh_timer = lv_timer_create(roller_refresh,2000,roller1);
|
||||||
|
|
||||||
|
// lv_obj_t * list = lv_list_create(fault_codes2);
|
||||||
|
// lv_obj_add_style(list,&roller_style,0);
|
||||||
|
// lv_obj_set_size(list, LV_PCT(100), LV_PCT(100));
|
||||||
|
// lv_obj_center(list);
|
||||||
|
// lv_obj_set_align(list,LV_ALIGN_CENTER);
|
||||||
|
//
|
||||||
|
// for(uint8_t btn_cnt = 1; btn_cnt <= 2; btn_cnt++) {
|
||||||
|
// char buf[32];
|
||||||
|
// lv_snprintf(buf, sizeof(buf), "Track %d", (int)btn_cnt);
|
||||||
|
// lv_list_add_btn(list, LV_SYMBOL_AUDIO, buf);
|
||||||
|
// }
|
||||||
|
|
||||||
|
|
||||||
|
lv_obj_t *roller2 = lv_roller_create(fault_codes2);
|
||||||
|
lv_obj_set_size(roller2,LV_PCT(100),LV_PCT(70));
|
||||||
|
lv_obj_add_style(roller2,&roller_style,0);
|
||||||
|
// lv_obj_set_style_bg_opa(roller2, LV_OPA_TRANSP, LV_PART_SELECTED);//
|
||||||
|
|
||||||
|
lv_obj_set_style_text_font(roller2, LV_FONT_MXC_MSYAHEI_CT_18PX, LV_STATE_DEFAULT);
|
||||||
|
lv_roller_set_options(roller2,
|
||||||
|
"0001\n"
|
||||||
|
"0002\n"
|
||||||
|
"0003\n"
|
||||||
|
"0004\n"
|
||||||
|
"0005\n"
|
||||||
|
"0006\n"
|
||||||
|
"0007\n"
|
||||||
|
"0008\n"
|
||||||
|
"0009\n"
|
||||||
|
"0010\n"
|
||||||
|
"0011\n"
|
||||||
|
"0012",
|
||||||
|
LV_ROLLER_MODE_INFINITE);
|
||||||
|
// LV_ROLLER_MODE_NORMAL);//正常滚动
|
||||||
|
lv_roller_set_visible_row_count(roller2, 3);
|
||||||
|
lv_obj_center(roller2);
|
||||||
|
lv_roller_set_selected(roller2, 1, LV_ANIM_OFF);
|
||||||
|
|
||||||
|
pTime_refresh_timer = lv_timer_create(roller1_refresh,2000,pSubUI_ERROR_win);
|
||||||
|
|
||||||
|
|
||||||
|
//将GtorUI放到按键编组中,相应按钮时间,切换到Err界面
|
||||||
|
//lv_obj_t* pDemo_group = get_key_group();
|
||||||
|
//lv_group_add_obj(pDemo_group, pSubUI_ERROR_win);
|
||||||
|
lv_group_t *demo_group = lv_get_keypad_group();
|
||||||
|
lv_group_remove_all_objs(demo_group);
|
||||||
|
lv_group_add_obj(demo_group, pSubUI_ERROR_win);
|
||||||
|
|
||||||
|
|
||||||
|
lv_obj_add_event_cb(pSubUI_ERROR_win, test_win1_handle, LV_EVENT_KEY, NULL);
|
||||||
|
}
|
||||||
|
|
||||||
|
void Generator_test2_src_win(lv_obj_t * scr_parent_main)
|
||||||
|
{
|
||||||
|
// lv_obj_t * scr_parent_main = get_root_win();
|
||||||
|
|
||||||
|
lv_obj_t* pSubUI_ERROR_win = lv_obj_create(scr_parent_main);
|
||||||
|
lv_obj_set_scrollbar_mode(pSubUI_ERROR_win, LV_SCROLLBAR_MODE_OFF); //关闭滑轮功能
|
||||||
|
lv_obj_set_size(pSubUI_ERROR_win, LV_PCT(100), LV_PCT(100)); //设置主界面100%显示
|
||||||
|
lv_obj_set_style_pad_all(pSubUI_ERROR_win, 0, 0); //
|
||||||
|
lv_obj_set_style_radius(pSubUI_ERROR_win, 0, 0); //圆角大小为0
|
||||||
|
lv_obj_set_style_border_width(pSubUI_ERROR_win, 0, LV_PART_MAIN); //设置边界宽度为主窗口默认宽度
|
||||||
|
lv_obj_set_style_border_color(pSubUI_ERROR_win, lv_color_black(), 0); //设置边界为全黑
|
||||||
|
lv_obj_set_style_bg_color(pSubUI_ERROR_win, lv_color_black(), 0); //设置背景为全黑
|
||||||
|
lv_obj_clear_flag(pSubUI_ERROR_win, LV_OBJ_FLAG_SCROLLABLE);
|
||||||
|
|
||||||
|
printf("enter Error_SubUI!\n");
|
||||||
|
|
||||||
|
static lv_style_t frame_style;
|
||||||
|
lv_style_init(&frame_style);
|
||||||
|
|
||||||
|
/*Set a background color and a radius*/
|
||||||
|
lv_style_set_radius(&frame_style, 20);
|
||||||
|
lv_style_set_bg_opa(&frame_style, LV_OPA_COVER);
|
||||||
|
lv_style_set_bg_color(&frame_style, lv_color_hex(0x4C96C7));
|
||||||
|
lv_style_set_border_width(&frame_style, 2);
|
||||||
|
lv_style_set_border_color(&frame_style, lv_color_hex(0xffffff));
|
||||||
|
|
||||||
|
lv_obj_t * labet_view1 = lv_obj_create(pSubUI_ERROR_win);
|
||||||
|
lv_obj_add_style(labet_view1, &frame_style, 0);
|
||||||
|
lv_obj_set_style_radius(labet_view1,12,0);
|
||||||
|
lv_obj_set_size(labet_view1,180,37);
|
||||||
|
lv_obj_set_pos(labet_view1, 35, 12);
|
||||||
|
lv_obj_clear_flag(labet_view1, LV_OBJ_FLAG_SCROLLABLE);
|
||||||
|
|
||||||
|
lv_obj_t * labet_view2 = lv_obj_create(pSubUI_ERROR_win);
|
||||||
|
lv_obj_add_style(labet_view2, &frame_style, 0);
|
||||||
|
lv_obj_set_style_radius(labet_view2,12,0);
|
||||||
|
lv_obj_set_size(labet_view2, 180,37);
|
||||||
|
lv_obj_set_pos(labet_view2, 267, 12);
|
||||||
|
lv_obj_clear_flag(labet_view2, LV_OBJ_FLAG_SCROLLABLE);
|
||||||
|
|
||||||
|
lv_obj_t * fault_codes1 = lv_obj_create(pSubUI_ERROR_win);
|
||||||
|
lv_obj_add_style(fault_codes1, &frame_style, 0);
|
||||||
|
lv_obj_set_size(fault_codes1,180,LV_PCT(78));
|
||||||
|
lv_obj_set_pos(fault_codes1, 35, 59);
|
||||||
|
lv_obj_clear_flag(fault_codes1, LV_OBJ_FLAG_SCROLLABLE);
|
||||||
|
|
||||||
|
lv_obj_t * fault_codes2 = lv_obj_create(pSubUI_ERROR_win);
|
||||||
|
lv_obj_add_style(fault_codes2, &frame_style, 0);
|
||||||
|
lv_obj_set_size(fault_codes2, 180,LV_PCT(78));
|
||||||
|
lv_obj_set_pos(fault_codes2, 267, 59);
|
||||||
|
lv_obj_clear_flag(fault_codes2, LV_OBJ_FLAG_SCROLLABLE);
|
||||||
|
|
||||||
|
//逆变器故障代码label Inverter type
|
||||||
|
lv_obj_t * pLabel_Inverter_Err = lv_label_create(labet_view1);
|
||||||
|
lv_obj_set_style_text_font(pLabel_Inverter_Err, LV_FONT_MXC_MSYAHEI_CT_18PX, LV_STATE_DEFAULT);
|
||||||
|
lv_label_set_text(pLabel_Inverter_Err, "逆变器故障代码");
|
||||||
|
lv_obj_center(pLabel_Inverter_Err);
|
||||||
|
|
||||||
|
//反拖故障代码
|
||||||
|
lv_obj_t * pLabel_Reverse_Err = lv_label_create(labet_view2);
|
||||||
|
lv_obj_set_style_text_font(pLabel_Reverse_Err, LV_FONT_MXC_MSYAHEI_CT_18PX, LV_STATE_DEFAULT);
|
||||||
|
lv_label_set_text(pLabel_Reverse_Err, "反拖故障代码");
|
||||||
|
lv_obj_center(pLabel_Reverse_Err);
|
||||||
|
//lv_obj_align(pLabel_Reverse_Err, LV_ALIGN_TOP_LEFT, 187, 154);
|
||||||
|
|
||||||
|
static lv_style_t roller_style;
|
||||||
|
lv_style_init(&roller_style);
|
||||||
|
// lv_style_set_bg_color(&roller_style, lv_color_black());
|
||||||
|
lv_style_set_bg_color(&roller_style, lv_color_hex(0x000000));
|
||||||
|
lv_style_set_bg_opa(&roller_style, 0);
|
||||||
|
lv_style_set_text_color(&roller_style, lv_color_white());
|
||||||
|
lv_style_set_border_width(&roller_style, 0);
|
||||||
|
lv_style_set_pad_all(&roller_style, 0);
|
||||||
|
|
||||||
|
lv_obj_t *roller1 = lv_roller_create(fault_codes1);
|
||||||
|
lv_obj_set_size(roller1,LV_PCT(100),LV_PCT(100));
|
||||||
|
lv_obj_add_style(roller1,&roller_style,0);
|
||||||
|
|
||||||
|
lv_obj_set_style_bg_opa(roller1, LV_OPA_TRANSP, LV_PART_SELECTED);
|
||||||
|
lv_obj_set_style_text_color(roller1,lv_color_hex(0xff0000),LV_PART_SELECTED);
|
||||||
|
|
||||||
|
lv_obj_set_style_text_font(roller1, LV_FONT_MXC_MSYAHEI_CT_18PX, LV_STATE_DEFAULT);
|
||||||
|
lv_roller_set_options(roller1,
|
||||||
|
"输出短路\n"
|
||||||
|
"直流母线高\n"
|
||||||
|
"直流母线低\n"
|
||||||
|
"输出电压高\n"
|
||||||
|
"输出电压低\n"
|
||||||
|
"IGBT温度高\n"
|
||||||
|
"输出过流\n"
|
||||||
|
"发动机转速丢失\n"
|
||||||
|
"单片机温度高\n"
|
||||||
|
"硬件峰值电流保护\n"
|
||||||
|
"基准电压错误\n"
|
||||||
|
"END",
|
||||||
|
LV_ROLLER_MODE_INFINITE);
|
||||||
|
// LV_ROLLER_MODE_NORMAL);//正常滚动
|
||||||
|
lv_roller_set_visible_row_count(roller1, 9);
|
||||||
|
lv_obj_center(roller1);
|
||||||
|
lv_roller_set_selected(roller1, 1, LV_ANIM_OFF);
|
||||||
|
|
||||||
|
// pTime_refresh_timer = lv_timer_create(roller_refresh,2000,roller1);
|
||||||
|
|
||||||
|
lv_obj_t *roller2 = lv_roller_create(fault_codes2);
|
||||||
|
lv_obj_set_size(roller2,LV_PCT(100),LV_PCT(70));
|
||||||
|
lv_obj_add_style(roller2,&roller_style,0);
|
||||||
|
// lv_obj_set_style_text_color(roller1,lv_color_hex(0xff0000),LV_PART_SELECTED);
|
||||||
|
lv_obj_set_style_bg_color(roller2,lv_color_hex(0xff0000),LV_PART_SELECTED);
|
||||||
|
// lv_obj_set_style_bg_opa(roller2, LV_OPA_TRANSP, LV_PART_SELECTED);//
|
||||||
|
|
||||||
|
lv_obj_set_style_text_font(roller2, LV_FONT_MXC_MSYAHEI_CT_18PX, LV_STATE_DEFAULT);
|
||||||
|
lv_roller_set_options(roller2,
|
||||||
|
"低压保护\n"
|
||||||
|
"软件电流保护\n"
|
||||||
|
"硬件电流保护\n"
|
||||||
|
"堵转保护\n"
|
||||||
|
"峰值过流保护\n"
|
||||||
|
"温度故障\n"
|
||||||
|
"点火失败\n"
|
||||||
|
"过压保护\n"
|
||||||
|
"机油故障\n"
|
||||||
|
"END",
|
||||||
|
LV_ROLLER_MODE_INFINITE);
|
||||||
|
// LV_ROLLER_MODE_NORMAL);//正常滚动
|
||||||
|
lv_roller_set_visible_row_count(roller2, 7);
|
||||||
|
lv_obj_center(roller2);
|
||||||
|
lv_roller_set_selected(roller2, 1, LV_ANIM_OFF);
|
||||||
|
|
||||||
|
pTime_refresh_timer = lv_timer_create(roller2_refresh,2000,pSubUI_ERROR_win);
|
||||||
|
|
||||||
|
//将GtorUI放到按键编组中,相应按钮时间,切换到Err界面
|
||||||
|
//lv_obj_t* pDemo_group = get_key_group();
|
||||||
|
//lv_group_add_obj(pDemo_group, pSubUI_ERROR_win);
|
||||||
|
|
||||||
|
lv_group_t *demo_group = lv_get_keypad_group();
|
||||||
|
lv_group_remove_all_objs(demo_group);
|
||||||
|
lv_group_add_obj(demo_group, pSubUI_ERROR_win);
|
||||||
|
|
||||||
|
lv_obj_add_event_cb(pSubUI_ERROR_win, test_win2_handle, LV_EVENT_KEY, NULL);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue