{"id":120918,"date":"2026-11-01T20:57:28","date_gmt":"2026-11-01T12:57:28","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/120918.html"},"modified":"2026-11-01T20:57:28","modified_gmt":"2026-11-01T12:57:28","slug":"lvgl-%e9%9d%a2%e8%af%95%e5%ae%9e%e6%88%98%ef%bc%9a%e5%b8%a7%e7%8e%87%e4%bc%98%e5%8c%96%e5%b8%b8%e7%94%a8%e6%89%8b%e6%ae%b5","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/120918.html","title":{"rendered":"LVGL \u9762\u8bd5\u5b9e\u6218\uff1a\u5e27\u7387\u4f18\u5316\u5e38\u7528\u624b\u6bb5"},"content":{"rendered":"<h2 style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261101125720-6ae7373087793.png\" \/><\/h2>\n<h2>\u4e00\u3001\u573a\u666f\u5f15\u5165<\/h2>\n<p>\u5728\u5d4c\u5165\u5f0f\u667a\u80fd\u9762\u677f\u3001\u8f66\u8f7d\u4e2d\u63a7\u3001\u5de5\u4e1a HMI \u7b49 LVGL \u9879\u76ee\u5f00\u53d1\u4e2d&#xff0c;\u7ecf\u5e38\u4f1a\u9047\u5230\u52a8\u753b\u5361\u987f\u3001\u6ed1\u52a8\u6389\u5e27\u3001\u754c\u9762\u54cd\u5e94\u5ef6\u8fdf\u7684\u95ee\u9898&#xff0c;\u5c24\u5176\u5728\u8d44\u6e90\u53d7\u9650\u7684 MCU \u5e73\u53f0&#xff08;\u5982 STM32F4\u3001ESP32-S3&#xff09;\u4e0a&#xff0c;\u5e27\u7387\u4e0d\u8db3\u4f1a\u76f4\u63a5\u5f71\u54cd\u7528\u6237\u4f53\u9a8c&#xff0c;\u751a\u81f3\u89e6\u53d1\u4ea4\u4e92\u8d85\u65f6\u3001\u4efb\u52a1\u8c03\u5ea6\u5f02\u5e38\u7b49\u529f\u80fd\u95ee\u9898\u3002\u638c\u63e1 LVGL \u5e27\u7387\u4f18\u5316\u624b\u6bb5\u662f\u5d4c\u5165\u5f0f GUI \u5f00\u53d1\u5de5\u7a0b\u5e08\u7684\u6838\u5fc3\u5fc5\u5907\u6280\u80fd&#xff0c;\u4e5f\u662f\u9762\u8bd5\u4e2d\u9ad8\u9891\u8003\u5bdf\u7684\u5b9e\u6218\u80fd\u529b\u70b9\u3002<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261101125722-6ae73732626cb.png\" \/><\/p>\n<h2>\u4e8c\u3001\u539f\u7406\u89e3\u6790<\/h2>\n<p>LVGL \u7684\u5e27\u7387\u672c\u8d28\u662f\u5355\u4f4d\u65f6\u95f4\u5185\u5b8c\u6210\u7684\u300c\u6e32\u67d3\u2192\u5237\u5c4f\u300d\u5faa\u73af\u6b21\u6570&#xff0c;\u4f18\u5316\u6838\u5fc3\u662f\u51cf\u5c11\u6bcf\u5e27\u7684 CPU\/GPU \u5360\u7528\u8017\u65f6&#xff0c;\u540c\u65f6\u964d\u4f4e\u6e32\u67d3\u548c\u5237\u5c4f\u7684\u65e0\u6548\u5f00\u9500\u3002\u5e95\u5c42\u903b\u8f91\u5206\u56db\u4e2a\u7ef4\u5ea6&#xff1a;<\/p>\n<\/p>\n<li>\u6e32\u67d3\u9636\u6bb5&#xff1a;\u51cf\u5c11\u65e0\u6548\u7ed8\u5236\u533a\u57df\u3001\u964d\u4f4e\u7ed8\u5236\u590d\u6742\u5ea6&#xff0c;LVGL \u9ed8\u8ba4\u91c7\u7528\u810f\u77e9\u5f62\u673a\u5236&#xff0c;\u4ec5\u91cd\u7ed8\u53d8\u5316\u7684\u533a\u57df&#xff0c;\u53ef\u901a\u8fc7\u5408\u5e76\u810f\u77e9\u5f62\u3001\u5173\u95ed\u4e0d\u5fc5\u8981\u7684\u7ed8\u5236\u7279\u6027\u8fdb\u4e00\u6b65\u964d\u4f4e\u6e32\u67d3\u91cf&#xff1b;<\/li>\n<li>\u8d44\u6e90\u9636\u6bb5&#xff1a;\u4f18\u5316\u56fe\u7247\u3001\u5b57\u4f53\u7b49\u8d44\u6e90\u7684\u5b58\u50a8\u683c\u5f0f\u548c\u52a0\u8f7d\u65b9\u5f0f&#xff0c;\u51cf\u5c11\u89e3\u7801\u8017\u65f6&#xff1b;<\/li>\n<li>\u4f20\u8f93\u9636\u6bb5&#xff1a;\u4f18\u5316\u663e\u793a\u63a5\u53e3\u7684\u4f20\u8f93\u6548\u7387&#xff0c;\u51cf\u5c11\u5237\u5c4f\u7684\u603b\u7ebf\u5360\u7528\u65f6\u95f4&#xff1b;<\/li>\n<li>\u8c03\u5ea6\u5c42\u9762&#xff1a;\u5408\u7406\u5206\u914d GUI \u4efb\u52a1\u7684\u4f18\u5148\u7ea7\u548c\u65f6\u95f4\u7247&#xff0c;\u907f\u514d\u5176\u4ed6\u4efb\u52a1\u62a2\u5360 GUI \u7684 CPU \u8d44\u6e90\u3002<\/li>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261101125724-6ae737341c593.png\" \/><\/p>\n<h2>\u4e09\u3001\u4e09\u9053\u9012\u8fdb\u8ffd\u95ee\u53ca\u7b54\u6848<\/h2>\n<h4>\u8ffd\u95ee 1&#xff08;\u57fa\u7840&#xff09;&#xff1a;LVGL \u9ed8\u8ba4\u7684\u810f\u77e9\u5f62\u673a\u5236\u662f\u4ec0\u4e48&#xff1f;\u5f00\u542f\u548c\u5173\u95ed\u5bf9\u5e27\u7387\u6709\u4ec0\u4e48\u5f71\u54cd&#xff1f;<\/h4>\n<p>\u810f\u77e9\u5f62\u673a\u5236\u662f LVGL \u5c06\u754c\u9762\u4e2d\u53d1\u751f\u53d8\u5316\u7684\u533a\u57df\u6807\u8bb0\u4e3a\u300c\u810f\u533a\u300d&#xff0c;\u6bcf\u5e27\u4ec5\u91cd\u7ed8\u8fd9\u4e9b\u533a\u57df\u800c\u975e\u6574\u4e2a\u5c4f\u5e55&#xff0c;\u53ef\u5927\u5e45\u51cf\u5c11\u6e32\u67d3\u91cf\u3002\u5173\u95ed\u540e\u6bcf\u5e27\u4f1a\u91cd\u7ed8\u6574\u4e2a\u5c4f\u5e55&#xff0c;\u6e32\u67d3\u8017\u65f6\u6210\u500d\u589e\u52a0&#xff0c;\u5e27\u7387\u4f1a\u5927\u5e45\u4e0b\u964d&#xff0c;\u901a\u5e38\u53ea\u6709\u5728\u5168\u5c4f\u52a8\u753b\u7b49\u7279\u6b8a\u573a\u666f\u4e0b\u624d\u4f1a\u4e34\u65f6\u5173\u95ed\u4ee5\u907f\u514d\u591a\u810f\u533a\u5408\u5e76\u3001\u591a\u5757\u810f\u533a\u91cd\u590d\u4f20\u8f93\u7684\u5f00\u9500\u3002<\/p>\n<\/p>\n<h4>\u8ffd\u95ee 2&#xff08;\u8fdb\u9636&#xff09;&#xff1a;\u5982\u679c\u754c\u9762\u5b58\u5728\u591a\u4e2a\u9891\u7e41\u66f4\u65b0\u7684\u5c0f\u63a7\u4ef6&#xff0c;\u5bfc\u81f4\u810f\u77e9\u5f62\u6570\u91cf\u8fc7\u591a&#xff0c;\u5e94\u8be5\u600e\u4e48\u4f18\u5316&#xff1f;<\/h4>\n<p>\u9996\u5148\u53ef\u5c06\u591a\u4e2a\u9891\u7e41\u66f4\u65b0\u7684\u63a7\u4ef6\u653e\u5230\u540c\u4e00\u4e2a\u5bb9\u5668\u4e2d&#xff0c;\u7edf\u4e00\u6807\u8bb0\u810f\u533a&#xff0c;\u964d\u4f4e\u810f\u533a\u6570\u91cf&#xff1b;\u5176\u6b21\u8c03\u6574LV_DISP_REFR_PERIOD&#xff08;\u5237\u65b0\u5468\u671f&#xff09;\u9002\u5f53\u62c9\u957f\u3001\u589e\u5927LV_DISP_DRAW_BUF_SIZE&#xff08;\u7ed8\u5236\u7f13\u51b2\u533a\u5927\u5c0f&#xff09;&#xff0c;\u8ba9\u591a\u4e2a\u5c0f\u810f\u533a\u5728\u4e24\u6b21\u5237\u65b0\u95f4\u9694\u5185\u5408\u5e76\u4e3a\u66f4\u5c11\u7684\u5927\u810f\u533a&#xff0c;\u51cf\u5c11\u91cd\u590d\u6e32\u67d3&#xff1b;\u8fd8\u53ef\u5173\u95ed\u4e0d\u5fc5\u8981\u7684\u900f\u660e\u3001\u9634\u5f71\u3001\u5706\u89d2\u7b49\u7279\u6027&#xff0c;\u51cf\u5c11\u5355\u4e2a\u810f\u533a\u7684\u7ed8\u5236\u8017\u65f6\u3002<\/p>\n<\/p>\n<h4>\u8ffd\u95ee 3&#xff08;\u7efc\u5408&#xff09;&#xff1a;\u5728 SPI \u63a5\u53e3\u7684 ILI9341 \u5c4f&#xff08;240*320&#xff09;\u4e0a\u8dd1 LVGL \u52a8\u753b\u5e27\u7387\u53ea\u6709 15 \u5e27&#xff0c;\u600e\u4e48\u6392\u67e5\u5e76\u4f18\u5316&#xff1f;<\/h4>\n<p>\u9996\u5148\u6392\u67e5\u786c\u4ef6&#xff1a;\u5c06 SPI \u65f6\u949f\u4ece\u9ed8\u8ba4 10MHz \u63d0\u5347\u5230\u82af\u7247\u548c\u5c4f\u5171\u540c\u652f\u6301\u7684\u6700\u9ad8\u901f\u7387&#xff08;\u901a\u5e38 30~40MHz&#xff0c;ILI9341 \u6700\u9ad8 SPI \u65f6\u949f\u5178\u578b\u503c\u4e3a 40MHz&#xff09;&#xff0c;\u5f00\u542f SPI DMA \u4f20\u8f93&#xff0c;\u82e5\u786c\u4ef6\u652f\u6301\u5219\u5f00\u542f SPI Quad \u6a21\u5f0f\u8fdb\u4e00\u6b65\u63d0\u5347\u5e26\u5bbd&#xff1b;\u7136\u540e\u4f18\u5316 LVGL \u914d\u7f6e&#xff1a;\u7ed8\u5236\u7f13\u51b2\u533a\u5927\u5c0f\u5efa\u8bae\u8bbe\u4e3a\u81f3\u5c11 10 \u884c&#xff0c;\u82e5 RAM \u8db3\u591f\u53ef\u5f00\u542f\u53cc\u7f13\u51b2&#xff08;disp_draw_buf2&#xff09;\u5b9e\u73b0\u6e32\u67d3\u548c\u4f20\u8f93\u5e76\u884c&#xff0c;\u5e73\u53f0\u652f\u6301 GPU \u7684\u8bdd\u5f00\u542fLV_USE_GPU&#xff1b;\u63a5\u7740\u4f18\u5316\u8d44\u6e90&#xff1a;\u56fe\u7247\u7528LV_IMG_CF_TRUE_COLOR&#xff08;\u4e0d\u9700\u8981\u900f\u660e\u65f6&#xff09;\u6216LV_IMG_CF_TRUE_COLOR_ALPHA&#xff08;\u9700\u8981\u900f\u660e\u65f6&#xff09;\u9884\u89e3\u7801\u6210 C \u6570\u7ec4&#xff0c;\u5b57\u4f53\u7528\u5b50\u96c6\u5316 &#043; \u538b\u7f29\u683c\u5f0f&#xff0c;\u5173\u95ed\u4e0d\u5fc5\u8981\u7684\u9634\u5f71\u3001\u5706\u89d2\u3001\u6e10\u53d8\u7b49\u590d\u6742\u7ed8\u5236\u6548\u679c&#xff1b;\u6700\u540e\u8c03\u5ea6\u5c42\u9762\u5c06 LVGL \u4efb\u52a1\u4f18\u5148\u7ea7\u8bbe\u4e3a\u9ad8\u4e8e\u666e\u901a\u4e1a\u52a1\u4efb\u52a1\u3001\u4f4e\u4e8e\u5b9e\u65f6\u6027\u8981\u6c42\u66f4\u9ad8\u7684\u4e2d\u65ad \/ \u4efb\u52a1&#xff0c;\u786e\u4fdd\u6e32\u67d3\u548c\u5237\u5c4f\u8fc7\u7a0b\u4e0d\u88ab\u957f\u65f6\u95f4\u62a2\u5360\u3002<\/p>\n<\/p>\n<h2>\u56db\u3001\u6700\u5c0f\u9a8c\u8bc1\u5b9e\u9a8c<\/h2>\n<h3 style=\"background-color:transparent\">4.1 \u5b9e\u9a8c\u73af\u5883<\/h3>\n<p>PC \u7aef LVGL v8.3 \u4eff\u771f\u73af\u5883&#xff08;MinGW&#043;SDL2&#xff09;&#xff0c;\u6a21\u62df 320*240 \u5206\u8fa8\u7387\u7684 MCU \u5e73\u53f0\u6027\u80fd\u9650\u5236&#xff0c;\u5173\u95ed GPU \u52a0\u901f\u3002<\/p>\n<h3>4.2 \u5b9e\u9a8c\u4ee3\u7801<\/h3>\n<p>#include &#034;lvgl\/lvgl.h&#034;<br \/>\n#include &lt;stdio.h&gt;<\/p>\n<p>\/* \u5e27\u7387\u7edf\u8ba1\u53d8\u91cf *\/<br \/>\nstatic uint32_t last_tick &#061; 0;<br \/>\nstatic uint32_t frame_count &#061; 0;<br \/>\nstatic int fps &#061; 0;<\/p>\n<p>\/* \u6bcf\u5e27\u7ed3\u675f\u56de\u8c03&#xff0c;\u7edf\u8ba1\u5e27\u7387 *\/<br \/>\nstatic void on_flush_cb(lv_disp_drv_t * drv, const lv_area_t * area, lv_color_t * color_p)<br \/>\n{<br \/>\n    frame_count&#043;&#043;;<br \/>\n    uint32_t now &#061; lv_tick_get();<br \/>\n    if(now &#8211; last_tick &gt;&#061; 1000) {<br \/>\n        fps &#061; frame_count;<br \/>\n        frame_count &#061; 0;<br \/>\n        last_tick &#061; now;<br \/>\n        printf(&#034;Current FPS: %d\\\\n&#034;, fps);<br \/>\n    }<br \/>\n    \/* \u6a21\u62dfSPI\u5237\u5c4f\u8017\u65f6&#xff1a;\u6bcf\u50cf\u7d202\u5b57\u8282&#xff08;RGB565&#xff09;&#xff0c;20MHz SPI\u7684\u6bd4\u7279\u7387\u4e3a20Mbit\/s&#xff0c;\u4f20\u8f93\u6bcf\u5b57\u8282\u8017\u65f6400ns&#xff0c;\u6bcf\u50cf\u7d20\u8017\u65f6800ns *\/<br \/>\n    uint32_t px_cnt &#061; (area-&gt;x2 &#8211; area-&gt;x1 &#043; 1) * (area-&gt;y2 &#8211; area-&gt;y1 &#043; 1);<br \/>\n    lv_delay_us(px_cnt * 800 \/ 1000); \/\/ \u8f6c\u6362\u4e3a\u5fae\u79d2\u7ea7\u5ef6\u8fdf<br \/>\n    lv_disp_flush_ready(drv);<br \/>\n}<\/p>\n<p>int main(void)<br \/>\n{<br \/>\n    lv_init();<br \/>\n    \/* \u521d\u59cb\u5316\u663e\u793a\u9a71\u52a8&#xff0c;\u8fd9\u91cc\u7528SDL\u4eff\u771f *\/<br \/>\n    static lv_disp_draw_buf_t draw_buf;<br \/>\n    static lv_color_t buf1[320 * 10]; \/* 10\u884c\u7ed8\u5236\u7f13\u51b2\u533a&#xff0c;\u6a21\u62df\u5c0f\u7f13\u5b58 *\/<br \/>\n    lv_disp_draw_buf_init(&amp;draw_buf, buf1, NULL, 320 * 10);<\/p>\n<p>    static lv_disp_drv_t disp_drv;<br \/>\n    lv_disp_drv_init(&amp;disp_drv);<br \/>\n    disp_drv.hor_res &#061; 320;<br \/>\n    disp_drv.ver_res &#061; 240;<br \/>\n    disp_drv.flush_cb &#061; on_flush_cb;<br \/>\n    disp_drv.draw_buf &#061; &amp;draw_buf;<br \/>\n    lv_disp_drv_register(&amp;disp_drv);<\/p>\n<p>    \/* \u4f18\u53161&#xff1a;\u5f00\u542f\u53cc\u7f13\u51b2&#xff0c;\u6ce8\u91ca\u6389\u5373\u53ef\u5bf9\u6bd4\u6548\u679c *\/<br \/>\n    \/\/ static lv_color_t buf2[320 * 10];<br \/>\n    \/\/ lv_disp_draw_buf_init(&amp;draw_buf, buf1, buf2, 320 * 10);<\/p>\n<p>    \/* \u4f18\u53162&#xff1a;\u589e\u5927\u7ed8\u5236\u7f13\u51b2\u533a\u4e3a\u6574\u5c4f&#xff0c;\u6ce8\u91ca\u6389\u5373\u53ef\u5bf9\u6bd4\u6548\u679c *\/<br \/>\n    \/\/ static lv_color_t buf_full[320 * 240];<br \/>\n    \/\/ lv_disp_draw_buf_init(&amp;draw_buf, buf_full, NULL, 320 * 240);<\/p>\n<p>    \/* \u521b\u5efa10\u4e2a\u540c\u65f6\u79fb\u52a8\u7684\u6309\u94ae&#xff0c;\u6a21\u62df\u9ad8\u8d1f\u8f7d\u573a\u666f *\/<br \/>\n    for(int i &#061; 0; i &lt; 10; i&#043;&#043;) {<br \/>\n        lv_obj_t * btn &#061; lv_btn_create(lv_scr_act());<br \/>\n        lv_obj_set_size(btn, 60, 30);<br \/>\n        lv_obj_set_pos(btn, 10, i * 35 &#043; 10);<br \/>\n        \/* \u521b\u5efa\u5de6\u53f3\u79fb\u52a8\u7684\u52a8\u753b *\/<br \/>\n        lv_anim_t a;<br \/>\n        lv_anim_init(&amp;a);<br \/>\n        lv_anim_set_var(&amp;a, btn);<br \/>\n        lv_anim_set_exec_cb(&amp;a, (lv_anim_exec_xcb_t)lv_obj_set_x);<br \/>\n        lv_anim_set_values(&amp;a, 10, 320 &#8211; 70);<br \/>\n        lv_anim_set_time(&amp;a, 2000);<br \/>\n        lv_anim_set_playback_time(&amp;a, 2000);<br \/>\n        lv_anim_set_repeat_count(&amp;a, LV_ANIM_REPEAT_INFINITE);<br \/>\n        lv_anim_start(&amp;a);<br \/>\n    }<\/p>\n<p>    while(1) {<br \/>\n        uint32_t start &#061; lv_tick_get();<br \/>\n        lv_timer_handler();<br \/>\n        uint32_t elapse &#061; lv_tick_get() &#8211; start;<br \/>\n        \/* \u6a21\u62df5ms tick\u95f4\u9694&#xff0c;\u6263\u9664lv_timer_handler\u8017\u65f6&#xff0c;\u4fdd\u8bc1tick\u6b65\u8fdb\u51c6\u786e *\/<br \/>\n        lv_tick_inc(5);<br \/>\n        if(elapse &lt; 5) {<br \/>\n            lv_delay_ms(5 &#8211; elapse);<br \/>\n        }<br \/>\n    }<br \/>\n    return 0;<br \/>\n}<\/p>\n<h3>4.3 \u64cd\u4f5c\u6b65\u9aa4<\/h3>\n<li>\u4ee3\u7801\u9ed8\u8ba4\u4e0d\u5f00\u542f\u4efb\u4f55\u4f18\u5316&#xff0c;\u7f16\u8bd1\u8fd0\u884c&#xff0c;\u8bb0\u5f55\u521d\u59cb\u5e27\u7387&#xff1b;<\/li>\n<li>\u53d6\u6d88\u300c\u4f18\u5316 1\u300d\u7684\u6ce8\u91ca&#xff0c;\u5f00\u542f\u53cc\u7f13\u51b2&#xff0c;\u7f16\u8bd1\u8fd0\u884c&#xff0c;\u8bb0\u5f55\u5e27\u7387&#xff1b;<\/li>\n<li>\u6ce8\u91ca\u300c\u4f18\u5316 1\u300d\u7684\u4ee3\u7801&#xff0c;\u53d6\u6d88\u300c\u4f18\u5316 2\u300d\u7684\u6ce8\u91ca&#xff0c;\u4f7f\u7528\u6574\u5c4f\u7f13\u51b2\u533a&#xff0c;\u7f16\u8bd1\u8fd0\u884c&#xff0c;\u8bb0\u5f55\u5e27\u7387&#xff1b;<\/li>\n<li>\u5bf9\u6bd4\u4e09\u7ec4\u6570\u636e\u7684\u5dee\u5f02\u3002<\/li>\n<h3>4.4 \u9884\u671f\u7ed3\u679c<\/h3>\n<li>\u521d\u59cb\u72b6\u6001\u5e27\u7387\u7ea6\u4e3a 12~15 \u5e27&#xff0c;\u52a8\u753b\u6709\u660e\u663e\u5361\u987f&#xff1b;<\/li>\n<li>\u5f00\u542f\u53cc\u7f13\u51b2\u540e\u5e27\u7387\u63d0\u5347\u5230 18~22 \u5e27&#xff0c;\u5361\u987f\u7f13\u89e3&#xff08;\u6e32\u67d3\u4e0e\u4f20\u8f93\u5e76\u884c&#xff0c;\u51cf\u5c11\u4e86\u7a7a\u95f2\u7b49\u5f85\u8017\u65f6&#xff09;&#xff1b;<\/li>\n<li>\u4f7f\u7528\u6574\u5c4f\u7f13\u51b2\u533a\u540e\u5e27\u7387\u63d0\u5347\u5230 28~32 \u5e27&#xff0c;\u52a8\u753b\u6d41\u7545&#xff08;\u810f\u533a\u5408\u5e76\u4e3a 1 \u6b21\u4f20\u8f93&#xff0c;\u51cf\u5c11\u4e86\u5c0f\u5757\u810f\u533a\u91cd\u590d\u4f20\u8f93\u5f00\u9500&#xff09;&#xff0c;\u9a8c\u8bc1\u4e86\u7f13\u51b2\u533a\u4f18\u5316\u5bf9\u5e27\u7387\u7684\u63d0\u5347\u6548\u679c\u3002<\/li>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261101125725-6ae73735c55a7.png\" \/><\/p>\n<h2>\u4e94\u3001\u5b9e\u6218\u603b\u7ed3<\/h2>\n<li>LVGL \u5e27\u7387\u4f18\u5316\u6838\u5fc3\u56f4\u7ed5\u6e32\u67d3\u3001\u8d44\u6e90\u3001\u4f20\u8f93\u3001\u8c03\u5ea6\u56db\u4e2a\u7ef4\u5ea6\u5c55\u5f00&#xff0c;\u5e27\u7387\u8ba1\u7b97\u516c\u5f0f\u4e3a&#xff1a;\u5e27\u7387&#061;1000ms\/(\u6e32\u67d3\u8017\u65f6&#043;\u5237\u5c4f\u8017\u65f6&#043;\u8c03\u5ea6\u7b49\u5f85\u8017\u65f6)&#xff0c;\u4f18\u5316\u4f18\u5148\u964d\u4f4e\u5360\u6bd4\u6700\u9ad8\u7684\u8017\u65f6\u9879\u3002<\/li>\n<li>\u810f\u77e9\u5f62\u673a\u5236\u662f LVGL \u9ed8\u8ba4\u7684\u6838\u5fc3\u6e32\u67d3\u4f18\u5316\u7b56\u7565&#xff0c;\u591a\u6570\u573a\u666f\u4e0b\u5f00\u542f\u53ef\u5927\u5e45\u964d\u4f4e\u6e32\u67d3\u91cf&#xff0c;\u4ec5\u5168\u5c4f\u52a8\u753b\u7b49\u7279\u6b8a\u573a\u666f\u53ef\u4e34\u65f6\u5173\u95ed\u3002<\/li>\n<li>\u7ed8\u5236\u7f13\u51b2\u533a\u5927\u5c0f\u3001\u53cc\u7f13\u51b2\u914d\u7f6e\u662f\u5f71\u54cd\u5e27\u7387\u7684\u5173\u952e\u8f6f\u4ef6\u53c2\u6570&#xff0c;\u4f18\u5148\u4fdd\u8bc1\u7f13\u51b2\u533a\u81f3\u5c11 10 \u884c&#xff0c;RAM \u5145\u8db3\u65f6\u4f18\u5148\u4f7f\u7528\u53cc\u7f13\u51b2\u6216\u6574\u5c4f\u7f13\u51b2\u3002<\/li>\n<li>\u4f18\u5316\u4f18\u5148\u7ea7&#xff1a;\u786c\u4ef6\u63a5\u53e3\u52a0\u901f&#xff08;\u63d0\u9ad8\u65f6\u949f\u3001\u5f00\u542f DMA \/ \u786c\u4ef6 SPI&#xff09;&gt; \u8f6f\u4ef6\u6e32\u67d3 \/ \u8d44\u6e90\u4f18\u5316 &gt; \u8c03\u5ea6\u7b56\u7565\u8c03\u6574&#xff0c;GUI \u4efb\u52a1\u4f18\u5148\u7ea7\u9700\u5e73\u8861\u5b9e\u65f6\u6027\u4e0e\u8d44\u6e90\u5360\u7528&#xff0c;\u907f\u514d\u8fc7\u9ad8\u963b\u585e\u9ad8\u4f18\u5148\u7ea7\u4efb\u52a1\u6216\u8fc7\u4f4e\u5bfc\u81f4 GUI \u5361\u987f\u3002<\/li>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001\u573a\u666f\u5f15\u5165\u5728\u5d4c\u5165\u5f0f\u667a\u80fd\u9762\u677f\u3001\u8f66\u8f7d\u4e2d\u63a7\u3001\u5de5\u4e1a HMI \u7b49 LVGL \u9879\u76ee\u5f00\u53d1\u4e2d&#xff0c;\u7ecf\u5e38\u4f1a\u9047\u5230\u52a8\u753b\u5361\u987f\u3001\u6ed1\u52a8\u6389\u5e27\u3001\u754c\u9762\u54cd\u5e94\u5ef6\u8fdf\u7684\u95ee\u9898&#xff0c;\u5c24\u5176\u5728\u8d44\u6e90\u53d7\u9650\u7684 MCU \u5e73\u53f0&#xff08;\u5982 STM32F4\u3001ESP32-S3&#xff09;\u4e0a&#xff0c;\u5e27\u7387\u4e0d\u8db3\u4f1a\u76f4\u63a5\u5f71\u54cd\u7528\u6237\u4f53\u9a8c&#xff0c;\u751a\u81f3\u89e6\u53d1\u4ea4\u4e92\u8d85\u65f6\u3001\u4efb\u52a1\u8c03\u5ea6\u5f02\u5e38\u7b49\u529f\u80fd\u95ee\u9898\u3002\u638c\u63e1 LVGL \u5e27\u7387\u4f18\u5316\u624b\u6bb5\u662f\u5d4c\u5165\u5f0f GUI \u5f00\u53d1\u5de5\u7a0b\u5e08\u7684\u6838\u5fc3\u5fc5\u5907\u6280\u80fd&#xff0c;\u4e5f\u662f\u9762\u8bd5\u4e2d\u9ad8\u9891\u8003\u5bdf\u7684\u5b9e\u6218\u80fd\u529b\u70b9\u3002\u4e8c\u3001<\/p>\n","protected":false},"author":2,"featured_media":120914,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[11820,13834,13832,13833,13836,13835],"topic":[],"class_list":["post-120918","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-atomgit","tag-lvgl-","tag--gui-"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>LVGL \u9762\u8bd5\u5b9e\u6218\uff1a\u5e27\u7387\u4f18\u5316\u5e38\u7528\u624b\u6bb5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/120918.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"LVGL \u9762\u8bd5\u5b9e\u6218\uff1a\u5e27\u7387\u4f18\u5316\u5e38\u7528\u624b\u6bb5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u4e00\u3001\u573a\u666f\u5f15\u5165\u5728\u5d4c\u5165\u5f0f\u667a\u80fd\u9762\u677f\u3001\u8f66\u8f7d\u4e2d\u63a7\u3001\u5de5\u4e1a HMI \u7b49 LVGL \u9879\u76ee\u5f00\u53d1\u4e2d&#xff0c;\u7ecf\u5e38\u4f1a\u9047\u5230\u52a8\u753b\u5361\u987f\u3001\u6ed1\u52a8\u6389\u5e27\u3001\u754c\u9762\u54cd\u5e94\u5ef6\u8fdf\u7684\u95ee\u9898&#xff0c;\u5c24\u5176\u5728\u8d44\u6e90\u53d7\u9650\u7684 MCU \u5e73\u53f0&#xff08;\u5982 STM32F4\u3001ESP32-S3&#xff09;\u4e0a&#xff0c;\u5e27\u7387\u4e0d\u8db3\u4f1a\u76f4\u63a5\u5f71\u54cd\u7528\u6237\u4f53\u9a8c&#xff0c;\u751a\u81f3\u89e6\u53d1\u4ea4\u4e92\u8d85\u65f6\u3001\u4efb\u52a1\u8c03\u5ea6\u5f02\u5e38\u7b49\u529f\u80fd\u95ee\u9898\u3002\u638c\u63e1 LVGL \u5e27\u7387\u4f18\u5316\u624b\u6bb5\u662f\u5d4c\u5165\u5f0f GUI \u5f00\u53d1\u5de5\u7a0b\u5e08\u7684\u6838\u5fc3\u5fc5\u5907\u6280\u80fd&#xff0c;\u4e5f\u662f\u9762\u8bd5\u4e2d\u9ad8\u9891\u8003\u5bdf\u7684\u5b9e\u6218\u80fd\u529b\u70b9\u3002\u4e8c\u3001\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/120918.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-11-01T12:57:28+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261101125720-6ae7373087793.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/120918.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/120918.html\",\"name\":\"LVGL \u9762\u8bd5\u5b9e\u6218\uff1a\u5e27\u7387\u4f18\u5316\u5e38\u7528\u624b\u6bb5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-11-01T12:57:28+00:00\",\"dateModified\":\"2026-11-01T12:57:28+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/120918.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/120918.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/120918.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"LVGL \u9762\u8bd5\u5b9e\u6218\uff1a\u5e27\u7387\u4f18\u5316\u5e38\u7528\u624b\u6bb5\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"LVGL \u9762\u8bd5\u5b9e\u6218\uff1a\u5e27\u7387\u4f18\u5316\u5e38\u7528\u624b\u6bb5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/120918.html","og_locale":"zh_CN","og_type":"article","og_title":"LVGL \u9762\u8bd5\u5b9e\u6218\uff1a\u5e27\u7387\u4f18\u5316\u5e38\u7528\u624b\u6bb5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u4e00\u3001\u573a\u666f\u5f15\u5165\u5728\u5d4c\u5165\u5f0f\u667a\u80fd\u9762\u677f\u3001\u8f66\u8f7d\u4e2d\u63a7\u3001\u5de5\u4e1a HMI \u7b49 LVGL \u9879\u76ee\u5f00\u53d1\u4e2d&#xff0c;\u7ecf\u5e38\u4f1a\u9047\u5230\u52a8\u753b\u5361\u987f\u3001\u6ed1\u52a8\u6389\u5e27\u3001\u754c\u9762\u54cd\u5e94\u5ef6\u8fdf\u7684\u95ee\u9898&#xff0c;\u5c24\u5176\u5728\u8d44\u6e90\u53d7\u9650\u7684 MCU \u5e73\u53f0&#xff08;\u5982 STM32F4\u3001ESP32-S3&#xff09;\u4e0a&#xff0c;\u5e27\u7387\u4e0d\u8db3\u4f1a\u76f4\u63a5\u5f71\u54cd\u7528\u6237\u4f53\u9a8c&#xff0c;\u751a\u81f3\u89e6\u53d1\u4ea4\u4e92\u8d85\u65f6\u3001\u4efb\u52a1\u8c03\u5ea6\u5f02\u5e38\u7b49\u529f\u80fd\u95ee\u9898\u3002\u638c\u63e1 LVGL \u5e27\u7387\u4f18\u5316\u624b\u6bb5\u662f\u5d4c\u5165\u5f0f GUI \u5f00\u53d1\u5de5\u7a0b\u5e08\u7684\u6838\u5fc3\u5fc5\u5907\u6280\u80fd&#xff0c;\u4e5f\u662f\u9762\u8bd5\u4e2d\u9ad8\u9891\u8003\u5bdf\u7684\u5b9e\u6218\u80fd\u529b\u70b9\u3002\u4e8c\u3001","og_url":"https:\/\/www.wsisp.com\/helps\/120918.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-11-01T12:57:28+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261101125720-6ae7373087793.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/120918.html","url":"https:\/\/www.wsisp.com\/helps\/120918.html","name":"LVGL \u9762\u8bd5\u5b9e\u6218\uff1a\u5e27\u7387\u4f18\u5316\u5e38\u7528\u624b\u6bb5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-11-01T12:57:28+00:00","dateModified":"2026-11-01T12:57:28+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/120918.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/120918.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/120918.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"LVGL \u9762\u8bd5\u5b9e\u6218\uff1a\u5e27\u7387\u4f18\u5316\u5e38\u7528\u624b\u6bb5"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/120918","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=120918"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/120918\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/120914"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=120918"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=120918"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=120918"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=120918"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}