{"id":7232,"date":"2022-01-04T07:49:15","date_gmt":"2022-01-04T07:49:15","guid":{"rendered":"https:\/\/www.qec.tw\/?p=7232"},"modified":"2024-07-22T06:22:57","modified_gmt":"2024-07-22T06:22:57","slug":"qec-m-043t-86duinos-lvgl-example-demowidgets","status":"publish","type":"post","link":"https:\/\/www.qec.tw\/zh\/ethercat\/ethercat-application\/qec-m-043t-86duinos-lvgl-example-demowidgets\/","title":{"rendered":"QEC-M-043T + 86Duino \u7684 LVGL \u793a\u4f8b\uff1aDemoWidgets"},"content":{"rendered":"<p class=\"wp-block-paragraph\">\u5728\u672c\u6559\u7a0b\u4e2d\uff0c\u60a8\u5c07\u5b78\u7fd2\u4f7f\u7528 LVGL (Light and Versatile Graphics Library) \u793a\u4f8b\u5728 QEC-M-043T \u4e0a\u5275\u5efa\u4eba\u6a5f\u756b\u9762\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1280\" height=\"720\" src=\"https:\/\/www.qec.tw\/wp-content\/uploads\/2022\/01\/lvglDemoWidgets_1.jpg\" alt=\"lvglDemoWidgets_1\" class=\"wp-image-7233\" srcset=\"https:\/\/www.qec.tw\/wp-content\/uploads\/2022\/01\/lvglDemoWidgets_1.jpg 1280w, https:\/\/www.qec.tw\/wp-content\/uploads\/2022\/01\/lvglDemoWidgets_1-300x169.jpg 300w, https:\/\/www.qec.tw\/wp-content\/uploads\/2022\/01\/lvglDemoWidgets_1-1024x576.jpg 1024w, https:\/\/www.qec.tw\/wp-content\/uploads\/2022\/01\/lvglDemoWidgets_1-768x432.jpg 768w, https:\/\/www.qec.tw\/wp-content\/uploads\/2022\/01\/lvglDemoWidgets_1-600x338.jpg 600w\" sizes=\"(max-width: 1280px) 100vw, 1280px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">\u76ee\u6a19\uff1a<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>\u4e86\u89e3 LVGL \u51fd\u5f0f\u5eab\u7d50\u69cb\u3002<\/li><li>\u5275\u5efa UI \u7bc4\u4f8b\u3002<\/li><li>\u8a2d\u7f6e\u88dd\u7f6e\u4ee5\u986f\u793a UI\u3002<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">\u6240\u9700\u7684\u786c\u9ad4\u548c\u8edf\u9ad4<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/www.qec.tw\/zh\/product\/qec-m-043t\/\">QEC-M-043T<\/a><\/li><li><a href=\"https:\/\/www.qec.tw\/zh\/software\/\">86Duino IDE 500<\/a><\/li><li>USB \u8f49 Micro-USB \u7dda<\/li><\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">LVGL - \u8f15\u4fbf\u7684\u591a\u529f\u80fd\u5716\u5f62\u5eab<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u5716\u5f62\u7528\u6236\u754c\u9762\u662f\u5fc5\u8981\u7684\u3002 Light and Versatile Graphics Library\uff0c\u4e5f\u7a31\u70ba LVGL\uff0c\u662f\u4e00\u500b\u958b\u6e90\u51fd\u5f0f\u5eab\uff0c\u53ef\u70ba\u5fae\u578b\u63a7\u5236\u5668\u548c\u9ad8\u7aef\u8655\u7406\u5668\u5275\u5efa\u5716\u5f62\u4eba\u6a5f\u754c\u9762\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">86Duino IDE 500 \u53ef\u76f4\u63a5\u4f7f\u7528 LVGL \u51fd\u5f0f\u5eab\u6838\u5fc3\u548c\u793a\u4f8b\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u4f7f\u7528\u8aaa\u660e<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u672c\u6559\u7a0b\u7684\u8a2d\u7f6e\u9700\u8981\u60a8\u901a\u904e USB \u8f49 Micro USB \u96fb\u7e9c\u9023\u63a5 QEC-M-043T \u548c\u96fb\u8166\uff0c\u7136\u5f8c\u5c07\u5b8c\u6210\u7684\u8349\u7a3f\u6587\u4ef6\u4e0a\u50b3\u5230 QEC-M-043T\u3002 LVGL \u7bc4\u4f8b\u5c07\u986f\u793a\u5728 QEC-M-043T \u4e0a\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u57fa\u672c\u8a2d\u7f6e<\/h3>\n\n\n\n<p class=\"wp-block-paragraph translation-block\">\u9996\u5148\u4f7f\u7528 USB \u8f49 Micro USB \u96fb\u7e9c\u5c07 QEC-M-043T \u9023\u7dda\u81f3\u500b\u4eba\u96fb\u8166\uff0c\u4e26\u958b\u555f 86Duino IDE 500\u3002\u5982\u679c\u9019\u662f\u60a8\u7b2c\u4e00\u6b21\u904b\u884c 86Duino sketch\uff0c\u6211\u5011\u5efa\u8b70\u60a8\u5728\u7e7c\u7e8c\u4e4b\u524d\u67e5\u770b\u5982\u4f55<a href=\"https:\/\/www.qec.tw\/zh\/ethercat\/qec-example\/set-up-the-qec-m-043t-for-86duino\/\" target=\"_self\">\u70ba86Duino\u8a2d\u7f6eQEC-M-043T<\/a> \u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u958b\u555f LVGL \u7bc4\u4f8b<\/h3>\n\n\n\n<p class=\"wp-block-paragraph translation-block\">\u9996\u5148\u5728 <em>Tools -&gt; Board<\/em> \u83dc\u55ae\u4e2d\u9078\u64c7\u201cQEC M043T\u201d\u3002<br>\u63a5\u4e0b\u4f86\uff0c\u5728 File \u83dc\u55ae\u4e2d\u9078\u64c7\u201cExamples\u201d\uff0c\u9078\u64c7\u5230 LVGL86 -&gt; LVGL \u4e26\u6253\u958b \u201cDemoWidgets\u201d\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized is-style-default\"><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.qec.tw\/wp-content\/uploads\/2022\/01\/lvglDemoWidgetsLocation-1.png?fit=827%2C977&amp;ssl=1\" alt=\"lvglDemoWidgetsLocation\" class=\"wp-image-10854\" width=\"414\" height=\"489\" srcset=\"https:\/\/www.qec.tw\/wp-content\/uploads\/2022\/01\/lvglDemoWidgetsLocation-1.png 827w, https:\/\/www.qec.tw\/wp-content\/uploads\/2022\/01\/lvglDemoWidgetsLocation-1-254x300.png 254w, https:\/\/www.qec.tw\/wp-content\/uploads\/2022\/01\/lvglDemoWidgetsLocation-1-768x907.png 768w, https:\/\/www.qec.tw\/wp-content\/uploads\/2022\/01\/lvglDemoWidgetsLocation-1-10x12.png 10w, https:\/\/www.qec.tw\/wp-content\/uploads\/2022\/01\/lvglDemoWidgetsLocation-1-600x709.png 600w\" sizes=\"(max-width: 414px) 100vw, 414px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">LVGL DemoWidgets<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u201cDemoWidgets\u201d \u793a\u4f8b\u4e2d\u6709 3 \u500b\u6587\u4ef6\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li class=\"translation-block\">DemoWidgets\uff1a<br><strong>*.ino<\/strong> \u6587\u4ef6\u662f\u60a8\u7684\u4e3b\u8981\u61c9\u7528\u7a0b\u5e8f\u6587\u4ef6\u3002<\/li><li class=\"translation-block\">lv_demo_widgets.c\uff1a<br><strong>*.c<\/strong> \u6587\u4ef6\u662f\u6211\u5011\u7684 C \u539f\u59cb\u78bc\u6587\u4ef6\uff0c\u539f\u59cb\u78bc\u7531\u7528\u6236\u5728\u5176\u4e2d\u7de8\u5beb\u548c\u5275\u5efa\u3002<\/li><li class=\"translation-block\">lv_demo_widgets.h\uff1a<br><strong>*.h<\/strong> \u6587\u4ef6\u662f\u9810\u5148\u7de8\u5beb\u7684 header \u6587\u4ef6\u3002<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.qec.tw\/wp-content\/uploads\/2022\/01\/lvglDemoWidgets.png?fit=732%2C809&amp;ssl=1\" alt=\"lvglDemoWidgets\" class=\"wp-image-10855\" width=\"366\" height=\"405\" srcset=\"https:\/\/www.qec.tw\/wp-content\/uploads\/2022\/01\/lvglDemoWidgets.png 732w, https:\/\/www.qec.tw\/wp-content\/uploads\/2022\/01\/lvglDemoWidgets-271x300.png 271w, https:\/\/www.qec.tw\/wp-content\/uploads\/2022\/01\/lvglDemoWidgets-11x12.png 11w, https:\/\/www.qec.tw\/wp-content\/uploads\/2022\/01\/lvglDemoWidgets-600x663.png 600w\" sizes=\"(max-width: 366px) 100vw, 366px\" \/><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e0a\u50b3\u8349\u7a3f\u78bc<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u4ee5\u4e0b\u662f\u5c07\u8349\u7a3f\u78bc\u4e0a\u50b3\u5230 QEC-M-043T \u7684\u5b8c\u6574\u6b65\u9a5f\u3002 \u5c07\u8349\u7a3f\u78bc\u4e0a\u50b3\u5230QEC-M-043T\u5f8c\uff0c\u5c31\u53ef\u770b\u5230\u986f\u793a\u4e86\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\" type=\"1\"><li class=\"translation-block\">\u5728<em>Tools -&gt; Board<\/em> \u83dc\u55ae\u4e2d\u9078\u64c7\u201cQEC M043T\u201d\u3002<\/li><li class=\"translation-block\">\u5728 <em>Tools -&gt; Serial Port<\/em> \u83dc\u55ae\u4e2d\u9078\u64c7\u6b63\u78ba\u7684 COM Port\u3002 \uff08\u8acb\u6253\u958b<em>\u8a2d\u5099\u7ba1\u7406\u5668 -&gt; \u7aef\u53e3 (COM &amp; LPT) -&gt; Prolific PL2303GC USB \u4e32\u884c COM \u7aef\u53e3 (COMx)<\/em> \u4ee5\u78ba\u4fdd\u60a8\u7684 COM Port \u7de8\u865f\u3002\uff09<\/li><li>\u9ede\u64ca\u201c\u4e0a\u50b3\u201d\u6309\u9215\uff0c\u7de8\u8b6f\u60a8\u7684\u7a0b\u5f0f\u78bc\uff0c\u4e26\u5c07\u5176\u4e0a\u50b3\u5230 QEC-M-043T\u3002<\/li><li>\u7136\u5f8c\uff0c\u60a8\u53ef\u4ee5\u5728\u4e0a\u50b3\u5b8c\u6210\u5f8c\u5728 QEC-M-043T \u4e0a\u770b\u5230 DemoWidgets \u7bc4\u4f8b\u3002<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"QEC-M-043T + LVGL DemoWidgets\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/m-GHuzo1fUY?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u7d50\u8ad6<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u672c\u6559\u7a0b\u5c55\u793a\u5982\u4f55\u4f7f\u7528 LVGL \u7bc4\u4f8b\u5728 QEC-M-043T \u4e0a\u5275\u5efa\u5716\u5f62\u4eba\u6a5f\u754c\u9762\uff0c\u4e26\u4e14\u6559\u5c0e\u5982\u4f55\u4f7f\u7528 LVGL \u7684\u201ctask\u201d\u529f\u80fd\u5faa\u74b0\u904b\u884c\u6307\u4ee4\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u4e0b\u4e00\u6b65<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u73fe\u5728\u60a8\u77e5\u9053\u5982\u4f55\u70ba\u5c4f\u5e55\u69cb\u5efa UI \u756b\u9762\uff0c\u60a8\u53ef\u4ee5\u5c07 EtherCAT \u5f9e\u7ad9\u8a2d\u5099\u9023\u63a5\u5230 QEC-M-043T \u4ee5\u4f7f\u7528 UI \u9032\u884c\u63a7\u5236\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u554f\u984c\u6392\u9664<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u8349\u7a3f\u78bc\u4e0a\u50b3\u7684\u7591\u96e3\u89e3\u7b54<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5982\u679c\u60a8\u5728\u4e0a\u50b3\u8349\u7a3f\u78bc\u6642\u9047\u5230\u554f\u984c\uff0c\u8acb\u78ba\u4fdd\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>\u5fc5\u9808\u9023\u63a5 Vs \u96fb\u6e90 (FGND\/GND\/VS)\u3002<\/li><li class=\"translation-block\">\u8acb\u6aa2\u67e5 COM port\u3002 \u60a8\u53ef\u4ee5\u6253\u958b<em>\u8a2d\u5099\u7ba1\u7406\u5668 -&gt; \u7aef\u53e3 (COM &amp; LPT) -&gt; Prolific PL2303GC USB \u4e32\u884c COM \u7aef\u53e3 (COMx)<\/em> \u4ee5\u78ba\u4fdd\u60a8\u7684 COM port \u7de8\u865f\u3002\uff09<\/li><li>\u677f\u5b50\u9078\u64c7 \u201cQEC M043T\u201d<\/li><\/ol>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"wp-block-paragraph translation-block\"><em>86Duino \u53c3\u8003\u7684\u6587\u672c\u662f\u6839\u64da <a href=\"https:\/\/creativecommons.org\/licenses\/by-sa\/3.0\/\" target=\"_self\">\u77e5\u8b58\u5171\u4eab\u7f72\u540d-\u76f8\u540c\u65b9\u5f0f\u5206\u4eab 3.0 \u8a31\u53ef\u8b49<\/a>\uff0c\u90e8\u5206\u6587\u672c\u662f\u5f9e <a href=\"https:\/\/arduino.cc\/en\/Reference\/HomePage\" target=\"_self\">Arduino \u53c3\u8003<\/a> \u4fee\u6539\u7684\u3002 \u53c3\u8003\u4e2d\u7684\u4ee3\u78bc\u793a\u4f8b\u5df2\u767c\u4f48\u5230\u516c\u5171\u9818\u57df\u3002<\/em><\/p>","protected":false},"excerpt":{"rendered":"<p>In this tutorial, you will learn to use LVGL (Light and Versatile Graphics Library) example to create a graphical user interface on QEC-M-043T. Goals: Understanding [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":7254,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[196],"tags":[191],"class_list":["post-7232","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ethercat-application","tag-qec"],"_links":{"self":[{"href":"https:\/\/www.qec.tw\/zh\/wp-json\/wp\/v2\/posts\/7232","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qec.tw\/zh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qec.tw\/zh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qec.tw\/zh\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qec.tw\/zh\/wp-json\/wp\/v2\/comments?post=7232"}],"version-history":[{"count":0,"href":"https:\/\/www.qec.tw\/zh\/wp-json\/wp\/v2\/posts\/7232\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.qec.tw\/zh\/wp-json\/wp\/v2\/media\/7254"}],"wp:attachment":[{"href":"https:\/\/www.qec.tw\/zh\/wp-json\/wp\/v2\/media?parent=7232"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qec.tw\/zh\/wp-json\/wp\/v2\/categories?post=7232"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qec.tw\/zh\/wp-json\/wp\/v2\/tags?post=7232"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}