{"id":3572,"date":"2025-04-27T13:57:17","date_gmt":"2025-04-27T05:57:17","guid":{"rendered":"https:\/\/saludpcb.com\/zh\/?p=3572"},"modified":"2025-09-26T06:15:41","modified_gmt":"2025-09-25T22:15:41","slug":"esp32-lvgl-tutorial-ui","status":"publish","type":"post","link":"https:\/\/saludpcb.com\/zh\/esp32-lvgl-tutorial-ui\/","title":{"rendered":"\u6253\u9020\u5c08\u696d\u7d1a UI | ESP32 LVGL \u5b89\u88dd\u8207\u5c08\u6848\u7d50\u69cb\u5b8c\u6574\u6559\u5b78"},"content":{"rendered":"\n<hr class=\"wp-block-separator alignwide has-text-color has-palette-color-1-color has-alpha-channel-opacity has-palette-color-1-background-color has-background is-style-wide\"\/>\n\n\n\n<p>ESP32 LVGL \u5728\u73fe\u4ee3\u5d4c\u5165\u5728\u5d4c\u5165\u5f0f\u958b\u767c\u9818\u57df\uff0cESP32 \u662f\u4e00\u9846\u9ad8\u6027\u50f9\u6bd4\u53c8\u591a\u529f\u80fd\u7684 Wi-Fi + \u85cd\u7259 SoC\uff0c\u4f46\u8981\u6253\u9020\u4e00\u500b\u300c<strong>\u770b\u8d77\u4f86\u5c08\u696d\u3001\u64cd\u4f5c\u76f4\u89ba\u3001\u6548\u80fd\u826f\u597d<\/strong>\u300d\u7684 UI\uff0c\u55ae\u9760\u57fa\u672c\u7684\u986f\u793a\u9a45\u52d5\u9084\u4e0d\u5920\u3002\u9019\u6642\u5019\uff0c\u5c31\u8a72\u8a8d\u8b58 <strong>LVGL\uff08Light and Versatile Graphics Library\uff09<\/strong>\u3002<br>\u5b83\u662f\u4e00\u5957\u5c08\u70ba\u5d4c\u5165\u5f0f\u7cfb\u7d71\u6253\u9020\u7684\u8f15\u91cf\u7d1a UI \u51fd\u5f0f\u5eab\uff0c\u652f\u63f4\u52d5\u756b\u3001\u4f48\u5c40\u3001\u81ea\u8a02\u6a23\u5f0f\u8207\u89f8\u63a7\u7b49\u529f\u80fd\uff0c\u800c\u4e14\u6548\u80fd\u512a\u79c0\uff0c\u8cc7\u6e90\u9700\u6c42\u4f4e\uff0c<strong>\u975e\u5e38\u9069\u5408 ESP32<\/strong>\u3002\u672c\u7bc7\u6587\u7ae0\u6703\u5e36\u4f60\u5f9e 0 \u958b\u59cb\uff0c\u5b78\u6703\u5982\u4f55\u5728 ESP-IDF \u4e2d\u5b89\u88dd LVGL\u3001\u5efa\u7acb\u4e00\u500b\u4e7e\u6de8\u7684\u5c08\u6848\u67b6\u69cb\uff0c\u4e26\u6210\u529f\u986f\u793a\u51fa\u7b2c\u4e00\u500b LVGL \u5143\u4ef6\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/saludpcb.com\/zh\/wp-content\/uploads\/2025\/04\/ESP32-LVGL-Tutorial-Build-a-Beautiful-and-Professional-UI.jpg\" alt=\"ESP32 LVGL\" class=\"wp-image-3579\" title=\"\" srcset=\"https:\/\/saludpcb.com\/zh\/wp-content\/uploads\/2025\/04\/ESP32-LVGL-Tutorial-Build-a-Beautiful-and-Professional-UI.jpg 1024w, https:\/\/saludpcb.com\/zh\/wp-content\/uploads\/2025\/04\/ESP32-LVGL-Tutorial-Build-a-Beautiful-and-Professional-UI-768x768.jpg 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<div class=\"wp-block-rank-math-toc-block\" id=\"rank-math-toc\"><h2>\u5167\u5bb9<\/h2><nav><ul><li class=\"\"><a href=\"#\u4ec0\u9ebc\u662f-modbus\uff1f\">\u4ec0\u9ebc\u662f LVGL\uff1f<\/a><\/li><li class=\"\"><a href=\"#pwm-\u8207\u547c\u5438\u71c8\u539f\u7406\u5feb\u901f\u7406\u89e3\">ESP32 LVGL \u539f\u7406\u5feb\u901f\u7406\u89e3<\/a><\/li><li class=\"\"><a href=\"#\u74b0\">\u958b\u767c\u74b0\u5883<\/a><\/li><li class=\"\"><a href=\"#\u5c08\u6848\u7d50\u69cb\">\u5c08\u6848\u7d50\u69cb<\/a><\/li><li class=\"\"><a href=\"#e\">\u53d6\u5f97 LVGL \u4e26\u6574\u5408\u5230 ESP-IDF \u5c08\u6848<\/a><\/li><li class=\"\"><a href=\"#\u8907\u88fd-lv-conf-template-h-\u6210-lv-conf-h\">\u8907\u88fd lv_conf_template.h \u6210 lv_conf.h<\/a><\/li><li class=\"\"><a href=\"#\u4f7f\u7528-esp-idf-\u64b0\u5beb\u547c\u5438\u71c8\u63a7\u5236\u7a0b\u5f0f\">\u7a0b\u5f0f\u78bc<\/a><\/li><li class=\"\"><a href=\"#\u7de8\u8b6f\u548c\u71d2\u9304\">\u7a0b\u5f0f\u78bc\u89e3\u8aaa<\/a><\/li><li class=\"\"><a href=\"#\u7de8\u8b6f\u548c\u71d2\u9304-1\">\u7de8\u8b6f\u548c\u71d2\u9304<\/a><\/li><li class=\"\"><a href=\"#\u7d50\u8ad6\">\u7d50\u8ad6<\/a><\/li><\/ul><\/nav><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"\u4ec0\u9ebc\u662f-modbus\uff1f\">\u4ec0\u9ebc\u662f LVGL\uff1f<\/h2>\n\n\n\n<p><strong><a href=\"https:\/\/lvgl.io\/\" target=\"_blank\" rel=\"noopener\">LVGL<\/a>\uff08Light and Versatile Graphics Library\uff09<\/strong> \u662f\u4e00\u5957\u958b\u6e90\u3001\u8de8\u5e73\u53f0\u7684\u5716\u5f62\u754c\u9762\u51fd\u5f0f\u5eab\uff0c\u5c08\u70ba\u4f4e\u8cc7\u6e90\u88dd\u7f6e\u8a2d\u8a08\u3002<\/p>\n\n\n\n<p>\u7279\u8272\u5305\u62ec\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u793e\u7fa4\u6d3b\u8e8d\u3001\u6587\u4ef6\u5b8c\u5584<\/li>\n\n\n\n<li>\u652f\u63f4 <strong>\u591a\u7a2e\u89e3\u6790\u5ea6\u8207\u89f8\u63a7\u8f38\u5165<\/strong><\/li>\n\n\n\n<li>\u63d0\u4f9b\u8c50\u5bcc\u7684 UI \u5143\u4ef6\uff08\u6309\u9215\u3001\u6587\u5b57\u3001\u6e05\u55ae\u3001\u6ed1\u687f\u7b49\uff09<\/li>\n\n\n\n<li>\u652f\u63f4 <strong>\u52d5\u756b\u3001\u4f48\u5c40\u3001\u4e3b\u984c\u5207\u63db<\/strong><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"pwm-\u8207\u547c\u5438\u71c8\u539f\u7406\u5feb\u901f\u7406\u89e3\">ESP32 LVGL \u539f\u7406\u5feb\u901f\u7406\u89e3<\/h2>\n\n\n\n<p>ESP32 \u4e0a\u904b\u884c LVGL \u524d\uff0c\u4e86\u89e3\u5176\u57fa\u672c\u67b6\u69cb\u8207\u904b\u4f5c\u539f\u7406\u80fd\u8b93\u4f60\u66f4\u9806\u5229\u6574\u5408\u986f\u793a\u8207\u89f8\u63a7\u8a2d\u5099\u3002<\/p>\n\n\n\n<p>LVGL \u81ea\u8eab\u662f\u4e00\u500b\u300c<strong>\u7d14 UI \u5f15\u64ce<\/strong>\u300d\uff0c\u5b83\u4e0d\u6703\u76f4\u63a5\u8207\u4f60\u7684 LCD \u6216\u89f8\u63a7 IC \u901a\u8a0a\uff0c\u800c\u662f\u900f\u904e\u4f60\u63d0\u4f9b\u7684<strong>\u9a45\u52d5\u7a0b\u5f0f callback<\/strong>\u4f86\u9032\u884c\u756b\u9762\u8f38\u51fa\u8207\u8f38\u5165\u8655\u7406\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">+------------------+\n|      Your App    | \u2190 \u4f60\u7684\u908f\u8f2f\u8207 UI \u6d41\u7a0b\n+------------------+\n         \u2193\n+------------------+\n|       LVGL       | \u2190 UI \u5143\u4ef6\u3001\u52d5\u756b\u3001\u6a23\u5f0f\u3001\u4f48\u5c40\u3001\u4e8b\u4ef6\u8655\u7406\u7b49\n+------------------+\n         \u2193\n+------------------+\n|  Display Driver  | \u2190 \u5c07 LVGL \u7e6a\u88fd\u7684\u50cf\u7d20\u8f38\u51fa\u5230 LCD\uff08\u9700\u5be6\u4f5c\uff09\n|   Input Driver   | \u2190 \u8655\u7406\u89f8\u63a7 \/ \u6309\u9215\u7b49\u8f38\u5165\uff08\u9700\u5be6\u4f5c\uff09\n+------------------+\n         \u2193\n+------------------+\n|   ESP32 + LCD    | \u2190 \u5be6\u9ad4\u87a2\u5e55\u6216\u89f8\u63a7\u8a2d\u5099\n+------------------+\n<\/code><\/pre>\n\n\n\n<p>LVGL \u7684\u904b\u4f5c\u6d41\u7a0b\u6838\u5fc3<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u521d\u59cb\u5316<\/strong>\uff1a<br>\u547c\u53eb&nbsp;<code>lv_init()<\/code>&nbsp;\u555f\u52d5 LVGL<\/li>\n\n\n\n<li><strong>\u8a3b\u518a\u986f\u793a\u9a45\u52d5<\/strong>\uff1a<br>\u63d0\u4f9b\u756b\u9762 buffer\uff08\u8a18\u61b6\u9ad4\uff09<br>\u63d0\u4f9b&nbsp;<code>flush_cb()<\/code>&nbsp;\u2192 \u5beb\u50cf\u7d20\u5230\u87a2\u5e55\u7684\u51fd\u5f0f<\/li>\n\n\n\n<li><strong>\u8a3b\u518a\u8f38\u5165\u9a45\u52d5<\/strong>\uff1a<br>\u63d0\u4f9b\u8b80\u53d6\u89f8\u63a7\u6216\u6309\u9215\u7684 callback<\/li>\n\n\n\n<li><strong>UI \u66f4\u65b0\u5faa\u74b0<\/strong>\uff1a<br>\u5b9a\u6642\u57f7\u884c&nbsp;<code>lv_timer_handler()<\/code>&nbsp;\u2192 \u8655\u7406\u52d5\u756b\u3001\u4e8b\u4ef6\u3001\u91cd\u7e6a\u7b49<br>\u901a\u5e38\u6bcf 5~10ms \u547c\u53eb\u4e00\u6b21<\/li>\n<\/ul>\n\n\n\n<p>\u9019\u4e9b\u5c31\u662f&nbsp;<strong>ESP32 LVGL \u7684\u57fa\u672c\u539f\u7406\u8207\u5de5\u4f5c\u6a5f\u5236<\/strong>\uff0c\u7406\u89e3\u4e4b\u5f8c\u4f60\u6703\u66f4\u5bb9\u6613\u5728\u65e5\u5f8c\u6574\u5408 LCD\u3001\u89f8\u63a7\u677f\uff0c\u751a\u81f3\u52a0\u5165\u5716\u793a\u52d5\u756b\u8207\u591a\u9801\u9762\u5207\u63db\uff01<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"\u74b0\">\u958b\u767c\u74b0\u5883<\/h2>\n\n\n\n<p>\u5728\u958b\u59cb\u7de8\u7a0b\u4e4b\u524d\uff0c\u8acb\u78ba\u4fdd\u5df2\u5b8c\u6210\u4ee5\u4e0b\u6e96\u5099\u5de5\u4f5c\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/saludpcb.com\/zh\/esp32-tutorial-how-to-create-an-esp32-project-with-vscode\/\">\u5b89\u88dd ESP-IDF \u958b\u767c\u74b0\u5883<\/a> (\u81f3\u5c11\u7248\u672c v4.4 \u6216\u66f4\u9ad8)\u3002<\/li>\n\n\n\n<li><a href=\"https:\/\/saludpcb.com\/zh\/esp32-devkit-module-pinout\/\">ESP32 \u958b\u767c\u677f<\/a>\u3002<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"\u5c08\u6848\u7d50\u69cb\"><strong>\u5c08\u6848\u7d50\u69cb<\/strong><\/h2>\n\n\n\n<p>\u5efa\u7acb\u4e00\u500b\u4e7e\u6de8\u7684 ESP-IDF LVGL \u5c08\u6848\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">esp32_lvgl_project\/\n\u251c\u2500\u2500 CMakeLists.txt\n\u251c\u2500\u2500 components\/\n\u2502   \u2514\u2500\u2500 lvgl\/               \u2190 LVGL\n\u251c\u2500\u2500 main\/\n\u2502   \u251c\u2500\u2500 CMakeLists.txt\n\u2502   \u2514\u2500\u2500 main.c              \u2190 Main\n\u251c\u2500\u2500 sdkconfig<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"e\">\u53d6\u5f97 LVGL \u4e26\u6574\u5408\u5230 ESP-IDF \u5c08\u6848<\/h2>\n\n\n\n<p>VGL \u96d6\u7136\u4e0d\u662f ESP-IDF \u5167\u5efa\u5143\u4ef6\uff0c\u4f46\u5b83\u652f\u63f4\u7528&nbsp;<code>components\/<\/code>&nbsp;\u7684\u65b9\u5f0f\u7c21\u55ae\u6574\u5408\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">mkdir -p components\ncd components\ngit clone https:\/\/github.com\/lvgl\/lvgl.git<\/code><\/pre>\n\n\n\n<p>\u63a5\u8457 ESP-IDF \u6703\u81ea\u52d5\u5075\u6e2c&nbsp;<code>components\/lvgl\/<\/code>&nbsp;\u4e26\u7de8\u8b6f\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"\u8907\u88fd-lv-conf-template-h-\u6210-lv-conf-h\">\u8907\u88fd <code>lv_conf_template.h<\/code> \u6210 <code>lv_conf.h<\/code><\/h2>\n\n\n\n<p>\u56e0\u70ba LVGL \u9810\u8a2d\u53ea\u63d0\u4f9b <strong><code>lv_conf_template.h<\/code><\/strong>\uff0c\u4f60\u9700\u8981\u81ea\u5df1\u624b\u52d5\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">cp components\/lvgl\/lv_conf_template.h components\/lvgl\/lv_conf.h<\/code><\/pre>\n\n\n\n<p>\u6253\u958b <code>lv_conf.h<\/code>\uff0c\u6703\u770b\u5230\u6700\u4e0a\u9762\u6709\u9019\u6bb5\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">#if 0 \/* Set this to \"1\" to enable content *\/\n\u8981\u628a\u5b83\u6539\u6210\uff1a\n#if 1 \/* Set this to \"1\" to enable content *\/<\/code><\/pre>\n\n\n\n<p>\u9019\u6a23\u6574\u500b\u8a2d\u5b9a\u6a94\u624d\u6703\u88ab\u555f\u7528\uff01\u4e0d\u7136 LVGL \u6703\u5b8c\u5168\u7528\u5167\u5efa\u9810\u8a2d\u503c\uff08\u901a\u5e38\u4e0d\u9069\u5408\u76f4\u63a5\u7528\u5728 ESP32\uff09\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"\u4f7f\u7528-esp-idf-\u64b0\u5beb\u547c\u5438\u71c8\u63a7\u5236\u7a0b\u5f0f\">\u7a0b\u5f0f\u78bc<\/h2>\n\n\n\n<p>\u4ee5\u4e0b\u662f\u57fa\u672c\u7684LVGL\u521d\u59cb\u5316\u4ee3\u78bc (<code>main\/main.c<\/code>)\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"cpp\" class=\"language-cpp\">#include \"lvgl.h\"\n#include \"freertos\/FreeRTOS.h\"\n#include \"freertos\/task.h\"\n\nvoid app_main(void)\n{\n    lv_init();  \/\/ Initialize LVGL\n\n    \/\/ Screen driver initialization is skipped here for simplicity.\n    \/\/ In practice, you should register the display driver and set up buffers.\n\n    lv_obj_t *label = lv_label_create(lv_scr_act());\n    lv_label_set_text(label, \"Hello ESP32 + LVGL!\");\n    lv_obj_align(label, LV_ALIGN_CENTER, 0, 0);\n\n    while (1) {\n        lv_timer_handler();              \/\/ Handle LVGL tasks (UI updates)\n        vTaskDelay(pdMS_TO_TICKS(10));    \/\/ Call every 10 ms\n    }\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"\u7de8\u8b6f\u548c\u71d2\u9304\">\u7a0b\u5f0f\u78bc\u89e3\u8aaa<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>lv_init()<\/code>\uff1a\u521d\u59cb\u5316 LVGL \u6838\u5fc3\u3002<\/li>\n\n\n\n<li><code>lv_label_create()<\/code>\uff1a\u5728\u4e3b\u756b\u9762\u4e0a\u65b0\u589e\u4e00\u500b\u6587\u5b57\u6a19\u7c64\u5143\u4ef6\u3002<\/li>\n\n\n\n<li><code>lv_label_set_text()<\/code>\uff1a\u8a2d\u5b9a\u6587\u5b57\u5167\u5bb9\u3002<\/li>\n\n\n\n<li><code>lv_obj_align()<\/code>\uff1a\u5c07\u5143\u4ef6\u7f6e\u4e2d\u3002<\/li>\n\n\n\n<li><code>lv_timer_handler()<\/code>\uff1aLVGL \u7684\u6838\u5fc3\u300c\u756b\u9762\u66f4\u65b0\u5668\u300d\uff0c\u5fc5\u9808\u5b9a\u6642\u547c\u53eb\u3002<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"\u7de8\u8b6f\u548c\u71d2\u9304-1\">\u7de8\u8b6f\u548c\u71d2\u9304<\/h2>\n\n\n\n<p>\u5b8c\u6210\u7a0b\u5f0f\u78bc\u5f8c\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528 <a href=\"https:\/\/www.espressif.com\/en\/products\/sdks\/esp-idf\" target=\"_blank\" rel=\"noopener\">ESP-IDF<\/a> \u63d0\u4f9b\u7684\u547d\u4ee4\u9032\u884c\u7de8\u8b6f\u3001\u71d2\u9304\u548c\u76e3\u63a7\u3002<\/p>\n\n\n\n<p>\u5728 VS Code \u7684\u5de6\u4e0b\u89d2 ESP-IDF \u5de5\u5177\u5217\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u9ede\u9078 <strong>Build project<\/strong><\/li>\n\n\n\n<li>\u9ede\u9078 <strong>Flash device<\/strong><\/li>\n\n\n\n<li>\u9ede\u9078 <strong>Monitor device<\/strong><\/li>\n<\/ul>\n\n\n\n<p>\u6210\u529f\u904b\u884c\u5f8c\uff0c\u4e32\u53e3\u76e3\u8996\u5668\u5c07\u986f\u793a\u5982\u4e0b\u8f38\u51fa\uff1a<br>\u4f60\u6703\u5728\u5e8f\u5217\u57e0\u770b\u5230 LVGL \u521d\u59cb\u5316\u6210\u529f\u7684 log\uff0c\u96d6\u7136\u9084\u6c92\u6709\u756b\u9762\uff08\u56e0\u70ba\u9084\u6c92\u9023\u63a5 LCD \u9a45\u52d5\uff09\uff0c\u4f46\u6574\u500b\u7cfb\u7d71\u5df2\u7d93\u80fd\u6b63\u5e38\u7de8\u8b6f\u4e26\u57f7\u884c LVGL \u7684\u908f\u8f2f\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"\u7d50\u8ad6\">\u7d50\u8ad6<\/h2>\n\n\n\n<p>\u5f9e\u5b89\u88dd LVGL\u3001\u7406\u89e3\u5176\u904b\u4f5c\u539f\u7406\uff0c\u5230\u5be6\u969b\u5efa\u7acb\u4e00\u500b\u6e05\u6670\u7684 ESP-IDF \u5c08\u6848\u67b6\u69cb\uff0c\u6211\u5011\u4e00\u6b65\u6b65\u8d70\u904e\u4e86\u5c07 LVGL \u6574\u5408\u9032 ESP32 \u5c08\u6848\u7684\u5b8c\u6574\u6d41\u7a0b\u3002\u9019\u4e0d\u50c5\u662f\u4e00\u6b21\u6280\u8853\u4e0a\u7684\u6574\u5408\u7df4\u7fd2\uff0c\u66f4\u662f\u5b78\u6703\u5982\u4f55\u6253\u9020\u51fa\u5177\u5099\u5c08\u696d\u5916\u89c0\u8207\u826f\u597d\u9ad4\u9a57\u7684\u5d4c\u5165\u5f0f\u5716\u5f62\u754c\u9762\u3002\u900f\u904e\u9019\u7bc7\u6587\u7ae0\uff0c\u76f8\u4fe1\u4f60\u5df2\u7d93\u638c\u63e1\u4e86 LVGL \u6700\u57fa\u672c\u7684\u4f7f\u7528\u65b9\u5f0f\u8207\u5c08\u6848\u5be6\u4f5c\u6280\u5de7\uff0c\u4e5f\u70ba\u5f8c\u7e8c\u9032\u4e00\u6b65\u6574\u5408\u89f8\u63a7\u87a2\u5e55\u3001\u52d5\u756b\u3001\u4e8b\u4ef6\u8655\u7406\u7b49\u529f\u80fd\u6253\u4e0b\u4e86\u7d2e\u5be6\u57fa\u790e\u3002\u5d4c\u5165\u5f0f\u958b\u767c\u4e0d\u518d\u53ea\u662f\u6587\u5b57\u8f38\u51fa\u6216 GPIO \u63a7\u5236\uff0c\u900f\u904e LVGL\uff0c\u6211\u5011\u80fd\u8b93\u786c\u9ad4\u7522\u54c1\u6709\u66f4\u597d\u7684\u4e92\u52d5\u4ecb\u9762\u3001\u66f4\u8c50\u5bcc\u7684\u4f7f\u7528\u9ad4\u9a57\u3002\u5e0c\u671b\u9019\u7bc7\u6559\u5b78\u80fd\u6210\u70ba\u4f60\u958b\u555f UI \u8a2d\u8a08\u4e4b\u8def\u7684\u8d77\u9ede\uff0c\u4e5f\u6b61\u8fce\u4f60\u6301\u7e8c\u63a2\u7d22\u66f4\u591a LVGL \u7684\u6f5b\u529b\uff0c\u8b93\u4f60\u7684 ESP32 \u5c08\u6848\u771f\u6b63\u300c\u770b\u8d77\u4f86\u5c31\u5f88\u5c08\u696d\u300d\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator alignwide has-text-color has-palette-color-1-color has-alpha-channel-opacity has-palette-color-1-background-color has-background is-style-wide\"\/>\n","protected":false},"excerpt":{"rendered":"<p>ESP32 LVGL \u5728\u73fe\u4ee3\u5d4c\u5165\u5728\u5d4c\u5165\u5f0f\u958b\u767c\u9818\u57df\uff0cESP32 \u662f\u4e00\u9846\u9ad8\u6027\u50f9\u6bd4\u53c8\u591a\u529f\u80fd\u7684 Wi-Fi + \u85cd\u7259  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":3579,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,53,83],"tags":[27,21,44,9,11],"class_list":["post-3572","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-module","category-esp32","category-featured","tag-c","tag-ide","tag-programming-language","tag-python","tag-tutorial"],"blocksy_meta":[],"_links":{"self":[{"href":"https:\/\/saludpcb.com\/zh\/wp-json\/wp\/v2\/posts\/3572","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/saludpcb.com\/zh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/saludpcb.com\/zh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/saludpcb.com\/zh\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/saludpcb.com\/zh\/wp-json\/wp\/v2\/comments?post=3572"}],"version-history":[{"count":8,"href":"https:\/\/saludpcb.com\/zh\/wp-json\/wp\/v2\/posts\/3572\/revisions"}],"predecessor-version":[{"id":3582,"href":"https:\/\/saludpcb.com\/zh\/wp-json\/wp\/v2\/posts\/3572\/revisions\/3582"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/saludpcb.com\/zh\/wp-json\/wp\/v2\/media\/3579"}],"wp:attachment":[{"href":"https:\/\/saludpcb.com\/zh\/wp-json\/wp\/v2\/media?parent=3572"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/saludpcb.com\/zh\/wp-json\/wp\/v2\/categories?post=3572"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/saludpcb.com\/zh\/wp-json\/wp\/v2\/tags?post=3572"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}