{"id":72255,"date":"2026-02-05T09:05:00","date_gmt":"2026-02-05T01:05:00","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/72255.html"},"modified":"2026-02-05T09:05:00","modified_gmt":"2026-02-05T01:05:00","slug":"%e3%80%90%e5%b5%8c%e5%85%a5%e5%bc%8f-gui-%e5%ae%9e%e6%88%98%e3%80%91lvglmp3-%e6%92%ad%e6%94%be%e5%99%a8%ef%bc%9a%e4%bb%8e%e7%8e%af%e5%a2%83%e6%90%ad%e5%bb%ba%e5%88%b0%e5%9b%be%e5%bd%a2%e7%95%8c","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/72255.html","title":{"rendered":"\u3010\u5d4c\u5165\u5f0f GUI \u5b9e\u6218\u3011LVGL+MP3 \u64ad\u653e\u5668\uff1a\u4ece\u73af\u5883\u642d\u5efa\u5230\u56fe\u5f62\u754c\u9762\u5f00\u53d1\u5168\u6307\u5357"},"content":{"rendered":"<h2>\u3010\u5d4c\u5165\u5f0f GUI \u5b9e\u6218\u3011LVGL&#043;MP3 \u64ad\u653e\u5668&#xff1a;\u4ece\u73af\u5883\u642d\u5efa\u5230\u56fe\u5f62\u754c\u9762\u5f00\u53d1\u5168\u6307\u5357<\/h2>\n<p>\u5927\u5bb6\u597d&#xff0c;\u6211\u662f\u4e13\u6ce8\u5d4c\u5165\u5f0f\u5f00\u53d1\u7684\u5c0f\u6768\u3002\u524d\u9762\u6211\u4eec\u7528 C \u8bed\u8a00\u5b9e\u73b0\u4e86\u7ec8\u7aef\u7248 MP3 \u64ad\u653e\u5668&#xff0c;\u4eca\u5929\u5c31\u7ed9\u5b83\u5347\u7ea7\u8fed\u4ee3 \u2014\u2014 \u7528 LVGL \u6253\u9020\u53ef\u89c6\u5316\u56fe\u5f62\u754c\u9762&#xff01;LVGL \u4f5c\u4e3a\u5d4c\u5165\u5f0f\u9886\u57df\u6700\u706b\u7684\u5f00\u6e90 GUI \u5e93&#xff0c;\u80fd\u5728 Linux\u3001\u5355\u7247\u673a\u7b49\u5e73\u53f0\u5feb\u901f\u6784\u5efa\u4ea4\u4e92\u5f0f\u754c\u9762&#xff0c;\u642d\u914d MP3 \u64ad\u653e\u529f\u80fd&#xff0c;\u5c31\u80fd\u5b9e\u73b0\u4e00\u6b3e\u517c\u5177\u989c\u503c\u548c\u5b9e\u7528\u6027\u7684\u5d4c\u5165\u5f0f\u591a\u5a92\u4f53\u64ad\u653e\u5668\u3002<\/p>\n<p>\u672c\u6587\u7ed3\u5408\u591a\u4efd\u5b9e\u64cd\u6587\u6863&#xff0c;\u4ece LVGL \u73af\u5883\u642d\u5efa&#xff08;\u89e3\u51b3\u4f9d\u8d56\u5751&#xff09;\u3001GUI \u754c\u9762\u8bbe\u8ba1\u3001\u5de5\u7a0b\u7f16\u8bd1\u5230\u8fd0\u884c\u8c03\u8bd5&#xff0c;\u624b\u628a\u624b\u5e26\u4f60\u5b8c\u6210\u6574\u4e2a\u9879\u76ee&#xff0c;\u65b0\u624b\u4e5f\u80fd\u8ddf\u7740\u4e00\u6b65\u6b65\u843d\u5730&#xff01;<\/p>\n<h3>\u4e00\u3001\u6838\u5fc3\u6280\u672f\u6808\u4e0e\u9879\u76ee\u76ee\u6807<\/h3>\n<h4>1. \u6280\u672f\u9009\u578b<\/h4>\n<ul>\n<li>\u56fe\u5f62\u5e93&#xff1a;LVGL&#xff08;\u8f7b\u91cf\u7ea7\u5f00\u6e90 GUI&#xff0c;\u652f\u6301\u62d6\u62fd\u5f0f\u8bbe\u8ba1&#xff09;&#xff1b;<\/li>\n<li>\u5f00\u53d1\u5de5\u5177&#xff1a;Gui-Guider&#xff08;LVGL \u53ef\u89c6\u5316\u8bbe\u8ba1\u5de5\u5177&#xff0c;\u65e0\u9700\u624b\u5199\u754c\u9762\u4ee3\u7801&#xff09;&#xff1b;<\/li>\n<li>\u97f3\u9891\u4f9d\u8d56&#xff1a;mpg123&#xff08;\u97f3\u9891\u64ad\u653e\u5de5\u5177&#xff09;&#xff1b;<\/li>\n<li>\u5e95\u5c42\u4f9d\u8d56&#xff1a;SDL2&#xff08;\u63d0\u4f9b\u663e\u793a\u9a71\u52a8\u548c\u8f93\u5165\u652f\u6301&#xff0c;LVGL \u8fd0\u884c\u5fc5\u5907&#xff09;&#xff1b;<\/li>\n<li>\u5f00\u53d1\u73af\u5883&#xff1a;Ubuntu 20.04&#xff08;\u517c\u5bb9\u6027\u6700\u4f73&#xff0c;\u907f\u514d\u7248\u672c\u9002\u914d\u95ee\u9898&#xff09;\u3002<\/li>\n<\/ul>\n<h4>2. \u9879\u76ee\u76ee\u6807<\/h4>\n<ul>\n<li>\u53ef\u89c6\u5316\u754c\u9762&#xff1a;\u5305\u542b\u6b4c\u66f2\u5217\u8868\u3001\u64ad\u653e \/ \u6682\u505c\u6309\u94ae\u3001\u4e0a\u4e00\u66f2 \/ \u4e0b\u4e00\u66f2\u6309\u94ae\u3001\u5f53\u524d\u64ad\u653e\u72b6\u6001\u663e\u793a&#xff1b;<\/li>\n<li>\u4ea4\u4e92\u529f\u80fd&#xff1a;\u70b9\u51fb\u6309\u94ae\u5b9e\u73b0\u64ad\u653e\u63a7\u5236&#xff0c;\u652f\u6301\u56fe\u7247\u6309\u94ae&#xff08;\u6309\u4e0b\u5207\u6362\u56fe\u6807&#xff09;&#xff1b;<\/li>\n<li>\u81ea\u52a8\u626b\u63cf&#xff1a;\u7a0b\u5e8f\u542f\u52a8\u540e\u81ea\u52a8\u626b\u63cf\u6307\u5b9a\u76ee\u5f55\u4e0b\u7684\u6240\u6709 MP3 \u6587\u4ef6&#xff0c;\u751f\u6210\u6b4c\u5355&#xff1b;<\/li>\n<li>\u8de8\u5e73\u53f0\u9002\u914d&#xff1a;\u57fa\u4e8e LVGL&#xff0c;\u540e\u7eed\u53ef\u79fb\u690d\u5230\u5d4c\u5165\u5f0f\u5f00\u53d1\u677f&#xff08;\u5982 STM32\u3001RK3399&#xff09;\u3002<\/li>\n<\/ul>\n<h3>\u4e8c\u3001\u73af\u5883\u642d\u5efa&#xff1a;\u907f\u5751\u6307\u5357 &#043; \u4f9d\u8d56\u5b89\u88c5<\/h3>\n<p>\u73af\u5883\u642d\u5efa\u662f\u5d4c\u5165\u5f0f GUI \u5f00\u53d1\u7684\u7b2c\u4e00\u9053\u574e&#xff0c;\u5c24\u5176 SDL2 \u548c Gui-Guider \u7684\u4f9d\u8d56\u95ee\u9898\u5bb9\u6613\u8e29\u5751&#xff0c;\u4ee5\u4e0b\u662f\u7ecf\u8fc7\u5b9e\u6d4b\u7684\u5b8c\u6574\u6d41\u7a0b&#xff1a;<\/p>\n<h4>1. \u57fa\u7840\u4f9d\u8d56\u5b89\u88c5&#xff08;SDL2 \u662f\u6838\u5fc3&#xff09;<\/h4>\n<p>SDL2 \u662f LVGL \u8fd0\u884c\u7684\u5e95\u5c42\u652f\u6491&#xff0c;\u8d1f\u8d23\u663e\u793a\u6e32\u67d3\u548c\u8f93\u5165\u5904\u7406&#xff0c;\u5fc5\u987b\u4f18\u5148\u5b89\u88c5&#xff1a;<\/p>\n<h5>\u65b9\u6cd5 1&#xff1a;apt \u5728\u7ebf\u5b89\u88c5&#xff08;\u63a8\u8350&#xff0c;\u7b80\u5355\u9ad8\u6548&#xff09;<\/h5>\n<p>bash<\/p>\n<p>\u8fd0\u884c<\/p>\n<p># \u76f4\u63a5\u5b89\u88c5SDL2\u5f00\u53d1\u4f9d\u8d56<br \/>\nsudo apt-get install libsdl2-dev<\/p>\n<h5>\u5e38\u89c1\u95ee\u9898\u89e3\u51b3<\/h5>\n<ul>\n<li>\u95ee\u9898 1&#xff1a;\u62a5\u9519 \u201c\u65e0\u6cd5\u83b7\u5f97\u9501 \/var\/lib\/dpkg\/lock-frontend\u201d\u89e3\u51b3&#xff1a;\u8981\u4e48\u5220\u9664\u9501\u6587\u4ef6&#xff0c;\u8981\u4e48\u91cd\u542f Ubuntu\n<p>bash<\/p>\n<p>\u8fd0\u884c<\/p>\n<p> sudo rm \/var\/lib\/dpkg\/lock-frontend\n <\/li>\n<li>\u95ee\u9898 2&#xff1a;\u4f9d\u8d56\u4e0d\u6ee1\u8db3&#xff08;\u5982\u7f3a\u5c11 libasound2-dev\u3001libudev-dev \u7b49&#xff09;\u89e3\u51b3&#xff1a;\u66f4\u65b0\u8f6f\u4ef6\u6e90\u540e\u4fee\u590d\u4f9d\u8d56\n<p>bash<\/p>\n<p>\u8fd0\u884c<\/p>\n<p> # 1. \u7f16\u8f91\u8f6f\u4ef6\u6e90\u914d\u7f6e\u6587\u4ef6<br \/>\nsudo nano \/etc\/apt\/sources.list<br \/>\n# 2. \u5728\u6587\u4ef6\u672b\u5c3e\u6dfb\u52a0Ubuntu 20.04\u5b98\u65b9\u6e90<br \/>\ndeb http:\/\/archive.ubuntu.com\/ubuntu\/ focal main restricted universe multiverse<br \/>\ndeb http:\/\/archive.ubuntu.com\/ubuntu\/ focal-updates main restricted universe multiverse<br \/>\ndeb http:\/\/security.ubuntu.com\/ubuntu\/ focal-security main restricted universe multiverse<br \/>\n# 3. \u66f4\u65b0\u6e90\u5e76\u4fee\u590d\u4f9d\u8d56<br \/>\nsudo apt-get update<br \/>\nsudo apt-get upgrade<br \/>\nsudo apt-get install -f<br \/>\n# 4. \u91cd\u65b0\u5b89\u88c5SDL2<br \/>\nsudo apt-get install libsdl2-dev\n <\/li>\n<\/ul>\n<h5>\u65b9\u6cd5 2&#xff1a;\u79bb\u7ebf\u5b89\u88c5&#xff08;\u5728\u7ebf\u5b89\u88c5\u5931\u8d25\u65f6\u4f7f\u7528&#xff09;<\/h5>\n<p>\u82e5 Ubuntu \u65e0\u6cd5\u8054\u7f51\u6216\u6e90\u4e0d\u53ef\u7528&#xff0c;\u53ef\u624b\u52a8\u4e0b\u8f7d SDL2 \u6e90\u7801\u7f16\u8bd1&#xff1a;<\/p>\n<p>bash<\/p>\n<p>\u8fd0\u884c<\/p>\n<p># 1. \u4e0b\u8f7dSDL2\u6e90\u7801&#xff08;\u7248\u672c2.26.5\u7a33\u5b9a\u7248&#xff09;<br \/>\nwget https:\/\/github.com\/libsdl-org\/SDL\/releases\/download\/release-2.26.5\/SDL2-2.26.5.tar.gz<br \/>\n# 2. \u89e3\u538b\u6e90\u7801\u5305<br \/>\ntar -zxvf SDL2-2.26.5.tar.gz<br \/>\n# 3. \u7f16\u8bd1\u5b89\u88c5<br \/>\ncd SDL2-2.26.5<br \/>\n.\/configure  # \u914d\u7f6e\u7f16\u8bd1\u73af\u5883<br \/>\nmake         # \u7f16\u8bd1<br \/>\nsudo make install  # \u5b89\u88c5\u5230\u7cfb\u7edf\u76ee\u5f55<\/p>\n<h4>2. \u5b89\u88c5 mpg123 \u97f3\u9891\u5de5\u5177<\/h4>\n<p>\u7528\u4e8e MP3 \u6587\u4ef6\u89e3\u7801\u64ad\u653e&#xff0c;\u7ec8\u7aef\u76f4\u63a5\u5b89\u88c5&#xff1a;<\/p>\n<p>bash<\/p>\n<p>\u8fd0\u884c<\/p>\n<p>sudo apt-get install mpg123<br \/>\n# \u6d4b\u8bd5\u662f\u5426\u5b89\u88c5\u6210\u529f<br \/>\nmpg123 test.mp3  # \u64ad\u653e\u672c\u5730MP3\u6587\u4ef6<\/p>\n<h4>3. \u5b89\u88c5 LVGL \u53ef\u89c6\u5316\u8bbe\u8ba1\u5de5\u5177&#xff08;Gui-Guider&#xff09;<\/h4>\n<p>Gui-Guider \u662f NXP \u63a8\u51fa\u7684 LVGL \u4e13\u7528\u8bbe\u8ba1\u5de5\u5177&#xff0c;\u652f\u6301\u62d6\u62fd\u63a7\u4ef6\u3001\u8bbe\u7f6e\u5c5e\u6027\u548c\u4e8b\u4ef6&#xff0c;\u65e0\u9700\u624b\u52a8\u7f16\u5199\u754c\u9762\u4ee3\u7801&#xff1a;<\/p>\n<p>bash<\/p>\n<p>\u8fd0\u884c<\/p>\n<p># 1. \u5b89\u88c5Gui-Guider&#xff08;\u9700\u63d0\u524d\u4e0b\u8f7d.deb\u5b89\u88c5\u5305&#xff09;<br \/>\nsudo dpkg -i Gui-Guider-Setup-1.2.1-GA.deb<br \/>\n# 2. \u82e5\u63d0\u793a\u4f9d\u8d56\u7f3a\u5931&#xff0c;\u4fee\u590d\u4f9d\u8d56\u540e\u91cd\u65b0\u5b89\u88c5<br \/>\nsudo apt-get install -f<br \/>\nsudo dpkg -i Gui-Guider-Setup-1.2.1-GA.deb<br \/>\n# 3. \u5b89\u88c5\u5b8c\u6210\u540e&#xff0c;\u4eceUbuntu\u5e94\u7528\u7a0b\u5e8f\u4e2d\u641c\u7d22&#034;gui&#034;\u5373\u53ef\u542f\u52a8<\/p>\n<h3>\u4e09\u3001LVGL \u56fe\u5f62\u754c\u9762\u8bbe\u8ba1&#xff1a;\u62d6\u62fd\u5f0f\u5f00\u53d1<\/h3>\n<p>Gui-Guider \u7684\u6838\u5fc3\u4f18\u52bf\u662f \u201c\u6240\u89c1\u5373\u6240\u5f97\u201d&#xff0c;\u65e0\u9700\u7f16\u5199\u590d\u6742\u7684 LVGL \u63a7\u4ef6\u521b\u5efa\u4ee3\u7801&#xff0c;\u51e0\u6b65\u5c31\u80fd\u641e\u5b9a MP3 \u64ad\u653e\u5668\u754c\u9762&#xff1a;<\/p>\n<h4>1. \u521b\u5efa LVGL \u5de5\u7a0b<\/h4>\n<li>\u542f\u52a8 Gui-Guider&#xff0c;\u70b9\u51fb \u201c\u521b\u5efa\u65b0\u9879\u76ee\u201d&#xff0c;\u9009\u62e9 \u201cLVGL Simulator\u201d&#xff08;Linux \u6a21\u62df\u5668&#xff09;&#xff1b;<\/li>\n<li>\u8bbe\u7f6e\u9879\u76ee\u540d\u79f0&#xff08;\u5982 \u201cmp3_player_gui\u201d&#xff09;\u548c\u4fdd\u5b58\u8def\u5f84&#xff1b;<\/li>\n<li>\u9009\u62e9 LVGL \u7248\u672c&#xff08;\u63a8\u8350 8.x \u7a33\u5b9a\u7248&#xff09;&#xff0c;\u8bbe\u7f6e\u5c4f\u5e55\u5206\u8fa8\u7387&#xff08;\u5982 480&#215;320&#xff0c;\u9002\u914d\u5d4c\u5165\u5f0f\u5e38\u89c1\u5c4f\u5e55&#xff09;&#xff1b;<\/li>\n<li>\u4fee\u6539\u8f6f\u4ef6\u8bed\u8a00&#xff08;\u652f\u6301\u4e2d\u6587&#xff09;&#xff1a;\u8fdb\u5165 \u201c\u7cfb\u7edf\u8bbe\u7f6e\u201d\u2192\u201cLanguage\u201d&#xff0c;\u9009\u62e9 \u201cChinese\u201d\u3002<\/li>\n<h4>2. \u8bbe\u8ba1\u64ad\u653e\u5668\u754c\u9762&#xff08;\u62d6\u62fd\u63a7\u4ef6&#xff09;<\/h4>\n<p>\u4ece\u5de6\u4fa7\u63a7\u4ef6\u5e93\u4e2d\u62d6\u62fd\u6240\u9700\u7ec4\u4ef6\u5230\u754c\u9762\u533a\u57df&#xff0c;\u642d\u5efa\u64ad\u653e\u5668\u6838\u5fc3\u754c\u9762&#xff1a;<\/p>\n<ul>\n<li>\u80cc\u666f&#xff1a;\u6dfb\u52a0 \u201cImage\u201d \u63a7\u4ef6&#xff0c;\u8bbe\u7f6e\u80cc\u666f\u56fe\u7247&#xff1b;<\/li>\n<li>\u6b4c\u66f2\u5217\u8868&#xff1a;\u6dfb\u52a0 \u201cList\u201d \u63a7\u4ef6&#xff0c;\u7528\u4e8e\u663e\u793a\u626b\u63cf\u5230\u7684 MP3 \u6587\u4ef6&#xff1b;<\/li>\n<li>\u64ad\u653e\u63a7\u5236\u6309\u94ae&#xff1a;\n<ul>\n<li>\u56fe\u7247\u6309\u94ae&#xff1a;\u6dfb\u52a0 3 \u4e2a \u201cButton\u201d \u63a7\u4ef6&#xff0c;\u8bbe\u7f6e\u6b63\u5e38 \/ \u6309\u4e0b\u72b6\u6001\u7684\u4e0d\u540c\u56fe\u7247&#xff08;\u5982\u64ad\u653e\u6309\u94ae\u6309\u4e0b\u540e\u663e\u793a\u6682\u505c\u56fe\u6807&#xff09;&#xff1b;<\/li>\n<li>\u529f\u80fd\u5206\u914d&#xff1a;\u6309\u94ae 1 &#061; \u4e0a\u4e00\u66f2\u3001\u6309\u94ae 2 &#061; \u64ad\u653e \/ \u6682\u505c\u3001\u6309\u94ae 3 &#061; \u4e0b\u4e00\u66f2&#xff1b;<\/li>\n<\/ul>\n<\/li>\n<li>\u72b6\u6001\u663e\u793a&#xff1a;\u6dfb\u52a0 \u201cLabel\u201d \u63a7\u4ef6&#xff0c;\u663e\u793a\u5f53\u524d\u64ad\u653e\u6b4c\u66f2\u540d\u79f0\u548c\u64ad\u653e\u72b6\u6001\u3002<\/li>\n<\/ul>\n<h4>3. \u8bbe\u7f6e\u6309\u94ae\u4e8b\u4ef6&#xff08;\u7ed1\u5b9a\u64ad\u653e\u903b\u8f91&#xff09;<\/h4>\n<p>\u754c\u9762\u8bbe\u8ba1\u5b8c\u6210\u540e&#xff0c;\u7ed9\u6309\u94ae\u7ed1\u5b9a\u4e8b\u4ef6\u5904\u7406\u51fd\u6570&#xff0c;\u5b9e\u73b0\u70b9\u51fb\u4ea4\u4e92&#xff1a;<\/p>\n<li>\u9009\u4e2d\u76ee\u6807\u6309\u94ae&#xff08;\u5982\u64ad\u653e \/ \u6682\u505c\u6309\u94ae \u201cbtn_play\u201d&#xff09;&#xff1b;<\/li>\n<li>\u53f3\u4fa7 \u201c\u4e8b\u4ef6\u8bbe\u7f6e\u201d \u4e2d&#xff0c;\u9009\u62e9\u89e6\u53d1\u65b9\u5f0f&#xff08;\u5982 \u201cPressed\u201d \u6309\u4e0b\u89e6\u53d1&#xff09;&#xff1b;<\/li>\n<li>\u9009\u62e9 \u201cC code\u201d \u52a8\u4f5c&#xff0c;\u7f16\u5199\u4e8b\u4ef6\u5904\u7406\u903b\u8f91&#xff08;\u5982\u8c03\u7528\u64ad\u653e \/ \u6682\u505c\u51fd\u6570&#xff09;&#xff1b;<\/li>\n<li>\u793a\u4f8b&#xff1a;\u64ad\u653e\u6309\u94ae\u6309\u4e0b\u4e8b\u4ef6<\/li>\n<p>c<\/p>\n<p>\u8fd0\u884c<\/p>\n<p>\/\/ \u64ad\u653e\/\u6682\u505c\u6309\u94ae\u4e8b\u4ef6\u5904\u7406\u51fd\u6570<br \/>\nvoid btn_play_pressed(lv_event_t *e) {<br \/>\n    if (is_playing) {<br \/>\n        \/\/ \u6682\u505c\u64ad\u653e&#xff1a;\u53d1\u9001SIGSTOP\u4fe1\u53f7\u7ed9\u64ad\u653e\u5b50\u8fdb\u7a0b<br \/>\n        kill(child_pid, 19);<br \/>\n        lv_label_set_text(ui_label_status, &#034;\u6682\u505c\u4e2d&#034;);<br \/>\n        \/\/ \u5207\u6362\u6309\u94ae\u56fe\u7247\u4e3a\u201c\u64ad\u653e\u201d\u56fe\u6807<br \/>\n        lv_img_set_src(ui_btn_play, &amp;img_play);<br \/>\n    } else {<br \/>\n        \/\/ \u7ee7\u7eed\u64ad\u653e&#xff1a;\u53d1\u9001SIGCONT\u4fe1\u53f7\u7ed9\u64ad\u653e\u5b50\u8fdb\u7a0b<br \/>\n        kill(child_pid, 18);<br \/>\n        lv_label_set_text(ui_label_status, &#034;\u64ad\u653e\u4e2d&#034;);<br \/>\n        \/\/ \u5207\u6362\u6309\u94ae\u56fe\u7247\u4e3a\u201c\u6682\u505c\u201d\u56fe\u6807<br \/>\n        lv_img_set_src(ui_btn_play, &amp;img_pause);<br \/>\n    }<br \/>\n    is_playing &#061; !is_playing;<br \/>\n}<\/p>\n<h4>4. \u751f\u6210 LVGL \u5de5\u7a0b\u4ee3\u7801<\/h4>\n<p>\u70b9\u51fb Gui-Guider \u9876\u90e8 \u201c\u751f\u6210\u4ee3\u7801\u201d \u6309\u94ae&#xff0c;\u5de5\u5177\u4f1a\u81ea\u52a8\u751f\u6210 LVGL \u754c\u9762\u76f8\u5173\u4ee3\u7801&#xff08;\u5982\u63a7\u4ef6\u521b\u5efa\u3001\u4e8b\u4ef6\u7ed1\u5b9a&#xff09;&#xff0c;\u65e0\u9700\u624b\u52a8\u7f16\u5199\u3002<\/p>\n<h3>\u56db\u3001\u5de5\u7a0b\u6574\u5408&#xff1a;LVGL \u754c\u9762 &#043; MP3 \u64ad\u653e\u903b\u8f91<\/h3>\n<p>\u5c06 Gui-Guider \u751f\u6210\u7684\u754c\u9762\u4ee3\u7801&#xff0c;\u4e0e\u4e4b\u524d\u7684 MP3 \u64ad\u653e\u903b\u8f91&#xff08;\u6587\u4ef6\u626b\u63cf\u3001\u8fdb\u7a0b\u63a7\u5236\u3001\u4fe1\u53f7\u5904\u7406&#xff09;\u6574\u5408&#xff0c;\u6838\u5fc3\u6b65\u9aa4\u5982\u4e0b&#xff1a;<\/p>\n<h4>1. \u5de5\u7a0b\u6587\u4ef6\u7ed3\u6784<\/h4>\n<p>\u6574\u5408\u540e\u7684\u5de5\u7a0b\u76ee\u5f55\u6e05\u6670&#xff0c;\u5206\u4e3a\u754c\u9762\u5c42\u3001\u903b\u8f91\u5c42\u548c\u5de5\u5177\u5c42&#xff1a;<\/p>\n<p>plaintext<\/p>\n<p>mp3_player_gui\/<br \/>\n\u251c\u2500\u2500 generated\/        # Gui-Guider\u751f\u6210\u7684\u754c\u9762\u4ee3\u7801&#xff08;\u63a7\u4ef6\u3001\u4e8b\u4ef6&#xff09;<br \/>\n\u2502   \u251c\u2500\u2500 gui_guider.c  # \u754c\u9762\u521d\u59cb\u5316\u51fd\u6570<br \/>\n\u2502   \u2514\u2500\u2500 events_init.c  # \u4e8b\u4ef6\u5904\u7406\u51fd\u6570&#xff08;\u9700\u4fee\u6539\u7ed1\u5b9a\u64ad\u653e\u903b\u8f91&#xff09;<br \/>\n\u251c\u2500\u2500 src\/<br \/>\n\u2502   \u251c\u2500\u2500 main.c        # \u4e3b\u51fd\u6570&#xff08;\u6574\u5408LVGL\u521d\u59cb\u5316&#043;MP3\u903b\u8f91&#xff09;<br \/>\n\u2502   \u251c\u2500\u2500 mp3_logic.c   # MP3\u64ad\u653e\u903b\u8f91&#xff08;\u6587\u4ef6\u626b\u63cf\u3001\u8fdb\u7a0b\u63a7\u5236&#xff09;<br \/>\n\u2502   \u2514\u2500\u2500 signal_handler.c  # \u4fe1\u53f7\u5904\u7406&#xff08;\u6682\u505c\/\u7ee7\u7eed\u3001\u7eed\u64ad&#xff09;<br \/>\n\u251c\u2500\u2500 images\/           # \u754c\u9762\u56fe\u7247\u8d44\u6e90&#xff08;\u6309\u94ae\u56fe\u6807\u3001\u80cc\u666f&#xff09;<br \/>\n\u2514\u2500\u2500 Makefile          # \u7f16\u8bd1\u811a\u672c&#xff08;Gui-Guider\u81ea\u52a8\u751f\u6210&#xff0c;\u53ef\u5fae\u8c03&#xff09;<\/p>\n<h4>2. \u6838\u5fc3\u6574\u5408\u70b9<\/h4>\n<h5>&#xff08;1&#xff09;MP3 \u6587\u4ef6\u626b\u63cf\u4e0e LVGL \u5217\u8868\u66f4\u65b0<\/h5>\n<p>\u5728mp3_logic.c\u4e2d\u4f7f\u7528glob\u51fd\u6570\u626b\u63cf MP3 \u6587\u4ef6&#xff0c;\u626b\u63cf\u5b8c\u6210\u540e\u66f4\u65b0 LVGL \u5217\u8868\u63a7\u4ef6&#xff1a;<\/p>\n<p>c<\/p>\n<p>\u8fd0\u884c<\/p>\n<p>#include &lt;glob.h&gt;<br \/>\n#include &#034;lvgl\/lvgl.h&#034;<br \/>\n#include &#034;generated\/gui_guider.h&#034;<\/p>\n<p>glob_t mp3_glob;  \/\/ \u5b58\u50a8\u626b\u63cf\u5230\u7684MP3\u6587\u4ef6<br \/>\nextern lv_obj_t *ui_list_song;  \/\/ Gui-Guider\u751f\u6210\u7684\u6b4c\u66f2\u5217\u8868\u63a7\u4ef6<\/p>\n<p>\/\/ \u626b\u63cf\u6307\u5b9a\u76ee\u5f55\u4e0b\u7684MP3\u6587\u4ef6<br \/>\nvoid scan_mp3_files(const char *path) {<br \/>\n    \/\/ \u5339\u914d\u8def\u5f84\u4e0b\u6240\u6709.mp3\u6587\u4ef6<br \/>\n    glob(path, 0, NULL, &amp;mp3_glob);<br \/>\n    \/\/ \u66f4\u65b0LVGL\u5217\u8868<br \/>\n    for (int i &#061; 0; i &lt; mp3_glob.gl_pathc; i&#043;&#043;) {<br \/>\n        \/\/ \u63d0\u53d6\u6587\u4ef6\u540d&#xff08;\u53bb\u6389\u8def\u5f84&#xff09;<br \/>\n        char *filename &#061; strrchr(mp3_glob.gl_pathv[i], &#039;\/&#039;) &#043; 1;<br \/>\n        \/\/ \u5411LVGL\u5217\u8868\u6dfb\u52a0\u9879<br \/>\n        lv_list_add_btn(ui_list_song, NULL, filename);<br \/>\n    }<br \/>\n}<\/p>\n<h5>&#xff08;2&#xff09;\u4e3b\u51fd\u6570\u521d\u59cb\u5316\u6d41\u7a0b<\/h5>\n<p>main.c\u4e2d\u5148\u521d\u59cb\u5316 LVGL \u548c\u754c\u9762&#xff0c;\u518d\u626b\u63cf MP3 \u6587\u4ef6&#xff0c;\u6700\u540e\u542f\u52a8 LVGL \u4e8b\u4ef6\u5faa\u73af&#xff1a;<\/p>\n<p>c<\/p>\n<p>\u8fd0\u884c<\/p>\n<p>#include &#034;lvgl\/lvgl.h&#034;<br \/>\n#include &#034;generated\/gui_guider.h&#034;<br \/>\n#include &#034;mp3_logic.h&#034;<\/p>\n<p>int main(int argc, char **argv) {<br \/>\n    \/\/ 1. \u521d\u59cb\u5316LVGL\u548cSDL2\u9a71\u52a8<br \/>\n    lv_init();<br \/>\n    lv_sdl2_init();  \/\/ Gui-Guider\u751f\u6210\u7684SDL2\u521d\u59cb\u5316\u51fd\u6570<\/p>\n<p>    \/\/ 2. \u521d\u59cb\u5316LVGL\u754c\u9762&#xff08;Gui-Guider\u751f\u6210&#xff09;<br \/>\n    gui_guider_init(&amp;guider_ui);<\/p>\n<p>    \/\/ 3. \u626b\u63cfMP3\u6587\u4ef6&#xff08;\u6307\u5b9a\u76ee\u5f55&#xff09;<br \/>\n    scan_mp3_files(&#034;.\/4data\/mp3\/*.mp3&#034;);<\/p>\n<p>    \/\/ 4. \u542f\u52a8LVGL\u4e8b\u4ef6\u5faa\u73af&#xff08;\u5904\u7406\u754c\u9762\u4ea4\u4e92&#xff09;<br \/>\n    while (1) {<br \/>\n        lv_task_handler();  \/\/ \u5904\u7406LVGL\u4efb\u52a1<br \/>\n        usleep(5000);       \/\/ \u5ef6\u65f6&#xff0c;\u964d\u4f4eCPU\u5360\u7528<br \/>\n    }<\/p>\n<p>    return 0;<br \/>\n}<\/p>\n<h5>&#xff08;3&#xff09;\u6309\u94ae\u4e8b\u4ef6\u7ed1\u5b9a\u64ad\u653e\u903b\u8f91<\/h5>\n<p>\u4fee\u6539generated\/events_init.c\u4e2d\u7684\u4e8b\u4ef6\u5904\u7406\u51fd\u6570&#xff0c;\u7ed1\u5b9a MP3 \u64ad\u653e\u63a7\u5236\u903b\u8f91&#xff1a;<\/p>\n<p>c<\/p>\n<p>\u8fd0\u884c<\/p>\n<p>#include &#034;events_init.h&#034;<br \/>\n#include &#034;mp3_logic.h&#034;<\/p>\n<p>\/\/ \u64ad\u653e\/\u6682\u505c\u6309\u94ae\u4e8b\u4ef6&#xff08;Gui-Guider\u751f\u6210\u7684\u51fd\u6570\u6846\u67b6&#xff0c;\u9700\u8865\u5145\u903b\u8f91&#xff09;<br \/>\nvoid btn_play_pressed(lv_event_t *e) {<br \/>\n    lv_obj_t *target &#061; lv_event_get_target(e);<br \/>\n    if (target &#061;&#061; ui_btn_play) {<br \/>\n        if (current_song_index &#061;&#061; -1) {<br \/>\n            \/\/ \u672a\u64ad\u653e\u65f6&#xff0c;\u64ad\u653e\u7b2c\u4e00\u9996\u6b4c<br \/>\n            play_mp3(mp3_glob.gl_pathv[0]);<br \/>\n            current_song_index &#061; 0;<br \/>\n            lv_label_set_text(ui_label_status, &#034;\u64ad\u653e\u4e2d&#034;);<br \/>\n        } else {<br \/>\n            \/\/ \u5207\u6362\u64ad\u653e\/\u6682\u505c\u72b6\u6001<br \/>\n            toggle_play_pause();<br \/>\n        }<br \/>\n    }<br \/>\n}<\/p>\n<p>\/\/ \u4e0b\u4e00\u66f2\u6309\u94ae\u4e8b\u4ef6<br \/>\nvoid btn_next_pressed(lv_event_t *e) {<br \/>\n    current_song_index &#061; (current_song_index &#043; 1) % mp3_glob.gl_pathc;<br \/>\n    play_mp3(mp3_glob.gl_pathv[current_song_index]);<br \/>\n    \/\/ \u66f4\u65b0\u754c\u9762\u663e\u793a\u5f53\u524d\u6b4c\u66f2<br \/>\n    lv_label_set_text(ui_label_current_song, mp3_glob.gl_pathv[current_song_index]);<br \/>\n}<\/p>\n<h3>\u4e94\u3001\u5de5\u7a0b\u7f16\u8bd1\u4e0e\u8fd0\u884c&#xff1a;\u89e3\u51b3\u5e38\u89c1\u62a5\u9519<\/h3>\n<h4>1. \u7f16\u8bd1\u5de5\u7a0b<\/h4>\n<p>Gui-Guider \u5df2\u81ea\u52a8\u751f\u6210 Makefile&#xff0c;\u8fdb\u5165\u5de5\u7a0b\u76ee\u5f55\u76f4\u63a5\u7f16\u8bd1&#xff1a;<\/p>\n<p>bash<\/p>\n<p>\u8fd0\u884c<\/p>\n<p>cd mp3_player_gui<br \/>\nmake<\/p>\n<h4>\u5e38\u89c1\u7f16\u8bd1\u62a5\u9519\u89e3\u51b3<\/h4>\n<ul>\n<li>\u62a5\u9519 1&#xff1a;\u201c\u627e\u4e0d\u5230 &#8211; lSDL2\u201d\u539f\u56e0&#xff1a;SDL2 \u672a\u5b89\u88c5\u6216\u672a\u88ab\u7f16\u8bd1\u5668\u627e\u5230&#xff1b;\u89e3\u51b3&#xff1a;\u91cd\u65b0\u5b89\u88c5 SDL2&#xff0c;\u6216\u5728 Makefile \u4e2d\u6dfb\u52a0 SDL2 \u5e93\u8def\u5f84&#xff1a;\n<p>makefile<\/p>\n<p> LDFLAGS &#043;&#061; -L\/usr\/local\/lib -lSDL2\n <\/li>\n<li>\u62a5\u9519 2&#xff1a;\u201c\u672a\u5b9a\u4e49\u5f15\u7528lv_img_set_src\u201d\u539f\u56e0&#xff1a;LVGL \u5e93\u672a\u94fe\u63a5\u6216\u7248\u672c\u4e0d\u5339\u914d&#xff1b;\u89e3\u51b3&#xff1a;\u786e\u8ba4 Makefile \u4e2d\u5305\u542b LVGL \u76f8\u5173\u6e90\u7801\u548c\u5e93\u6587\u4ef6&#xff0c;\u4f7f\u7528 Gui-Guider \u9ed8\u8ba4\u751f\u6210\u7684 Makefile \u5373\u53ef\u3002<\/li>\n<\/ul>\n<h4>2. \u8fd0\u884c\u7a0b\u5e8f<\/h4>\n<p>\u7f16\u8bd1\u6210\u529f\u540e&#xff0c;\u6267\u884c\u751f\u6210\u7684\u53ef\u6267\u884c\u6587\u4ef6&#xff0c;\u542f\u52a8\u5e26 GUI \u7684 MP3 \u64ad\u653e\u5668&#xff1a;<\/p>\n<p>bash<\/p>\n<p>\u8fd0\u884c<\/p>\n<p># \u8fdb\u5165\u7f16\u8bd1\u8f93\u51fa\u76ee\u5f55<br \/>\ncd build\/bin<br \/>\n# \u8fd0\u884c\u64ad\u653e\u5668<br \/>\n.\/simulator<\/p>\n<h4>\u8fd0\u884c\u6548\u679c<\/h4>\n<ul>\n<li>\u542f\u52a8\u540e\u81ea\u52a8\u626b\u63cf MP3 \u6587\u4ef6&#xff0c;\u5728\u5217\u8868\u4e2d\u663e\u793a&#xff1b;<\/li>\n<li>\u70b9\u51fb \u201c\u64ad\u653e\u201d \u6309\u94ae\u5f00\u59cb\u64ad\u653e&#xff0c;\u6309\u94ae\u56fe\u6807\u5207\u6362\u4e3a \u201c\u6682\u505c\u201d&#xff1b;<\/li>\n<li>\u70b9\u51fb \u201c\u4e0a\u4e00\u66f2 \/ \u4e0b\u4e00\u66f2\u201d \u5207\u6362\u6b4c\u66f2&#xff0c;\u754c\u9762\u5b9e\u65f6\u66f4\u65b0\u5f53\u524d\u64ad\u653e\u72b6\u6001&#xff1b;<\/li>\n<li>\u70b9\u51fb \u201c\u6682\u505c\u201d \u6309\u94ae&#xff0c;\u97f3\u4e50\u6682\u505c&#xff0c;\u56fe\u6807\u5207\u6362\u56de \u201c\u64ad\u653e\u201d\u3002<\/li>\n<\/ul>\n<h3>\u516d\u3001\u9879\u76ee\u62d3\u5c55&#xff1a;\u79fb\u690d\u5230\u5d4c\u5165\u5f0f\u5f00\u53d1\u677f<\/h3>\n<p>\u8fd9\u6b3e\u64ad\u653e\u5668\u57fa\u4e8e LVGL \u5f00\u53d1&#xff0c;\u5929\u751f\u652f\u6301\u8de8\u5e73\u53f0&#xff0c;\u540e\u7eed\u53ef\u8f7b\u677e\u79fb\u690d\u5230\u5d4c\u5165\u5f0f\u5f00\u53d1\u677f&#xff08;\u5982 STM32\u3001IMX6ULL&#xff09;&#xff1a;<\/p>\n<li>\u66ff\u6362\u9a71\u52a8&#xff1a;\u5c06 SDL2 \u9a71\u52a8\u66ff\u6362\u4e3a\u5f00\u53d1\u677f\u7684 LCD \u9a71\u52a8\u548c\u89e6\u6478\u9a71\u52a8&#xff1b;<\/li>\n<li>\u9002\u914d\u97f3\u9891&#xff1a;\u5c06 mpg123 \u66ff\u6362\u4e3a\u5f00\u53d1\u677f\u652f\u6301\u7684\u97f3\u9891\u89e3\u7801\u5e93&#xff08;\u5982 madplay&#xff09;&#xff1b;<\/li>\n<li>\u4f18\u5316\u8d44\u6e90&#xff1a;\u538b\u7f29\u56fe\u7247\u8d44\u6e90&#xff0c;\u88c1\u526a LVGL \u529f\u80fd\u6a21\u5757&#xff0c;\u9002\u914d\u5f00\u53d1\u677f\u5185\u5b58&#xff1b;<\/li>\n<li>\u7f16\u8bd1\u79fb\u690d&#xff1a;\u4f7f\u7528\u4ea4\u53c9\u7f16\u8bd1\u5de5\u5177\u94fe\u7f16\u8bd1\u5de5\u7a0b&#xff0c;\u70e7\u5199\u5230\u5f00\u53d1\u677f\u8fd0\u884c\u3002<\/li>\n<h3>\u4e03\u3001\u603b\u7ed3&#xff1a;\u5d4c\u5165\u5f0f GUI \u5f00\u53d1\u7684\u6838\u5fc3\u8981\u70b9<\/h3>\n<li>\u73af\u5883\u642d\u5efa\u662f\u57fa\u7840&#xff1a;SDL2 \u548c\u4f9d\u8d56\u5e93\u7684\u5b89\u88c5\u662f LVGL \u8fd0\u884c\u7684\u524d\u63d0&#xff0c;\u9047\u5230\u4f9d\u8d56\u95ee\u9898\u4f18\u5148\u66f4\u65b0\u8f6f\u4ef6\u6e90&#xff1b;<\/li>\n<li>\u53ef\u89c6\u5316\u5de5\u5177\u63d0\u6548&#xff1a;Gui-Guider \u5927\u5e45\u964d\u4f4e LVGL \u754c\u9762\u5f00\u53d1\u96be\u5ea6&#xff0c;\u65e0\u9700\u624b\u52a8\u7f16\u5199\u63a7\u4ef6\u521b\u5efa\u4ee3\u7801&#xff1b;<\/li>\n<li>\u903b\u8f91\u6574\u5408\u662f\u5173\u952e&#xff1a;\u5c06 GUI \u4e8b\u4ef6\u4e0e\u4e1a\u52a1\u903b\u8f91&#xff08;MP3 \u64ad\u653e\u3001\u6587\u4ef6\u626b\u63cf&#xff09;\u5206\u79bb&#xff0c;\u4ee3\u7801\u66f4\u6613\u7ef4\u62a4&#xff1b;<\/li>\n<li>\u8de8\u5e73\u53f0\u9002\u914d&#xff1a;LVGL \u7684\u786c\u4ef6\u62bd\u8c61\u5c42\u8bbe\u8ba1&#xff0c;\u8ba9\u9879\u76ee\u4ece Linux \u6a21\u62df\u5668\u79fb\u690d\u5230\u5d4c\u5165\u5f0f\u5f00\u53d1\u677f\u53ea\u9700\u66ff\u6362\u9a71\u52a8\u3002<\/li>\n<p>\u901a\u8fc7\u8fd9\u4e2a\u9879\u76ee&#xff0c;\u4f60\u4e0d\u4ec5\u80fd\u638c\u63e1 LVGL \u7684\u57fa\u7840\u4f7f\u7528&#xff0c;\u8fd8\u80fd\u7406\u89e3 \u201cGUI &#043; \u4e1a\u52a1\u903b\u8f91\u201d \u7684\u6574\u5408\u601d\u8def&#xff0c;\u4e3a\u540e\u7eed\u5d4c\u5165\u5f0f\u591a\u5a92\u4f53\u9879\u76ee\u5f00\u53d1\u6253\u4e0b\u57fa\u7840\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3010\u5d4c\u5165\u5f0f GUI \u5b9e\u6218\u3011LVGLMP3 \u64ad\u653e\u5668&#xff1a;\u4ece\u73af\u5883\u642d\u5efa\u5230\u56fe\u5f62\u754c\u9762\u5f00\u53d1\u5168\u6307\u5357<br \/>\n\u5927\u5bb6\u597d&#xff0c;\u6211\u662f\u4e13\u6ce8\u5d4c\u5165\u5f0f\u5f00\u53d1\u7684\u5c0f\u6768\u3002\u524d\u9762\u6211\u4eec\u7528 C \u8bed\u8a00\u5b9e\u73b0\u4e86\u7ec8\u7aef\u7248 MP3 \u64ad\u653e\u5668&#xff0c;\u4eca\u5929\u5c31\u7ed9\u5b83\u5347\u7ea7\u8fed\u4ee3 \u2014\u2014 \u7528 LVGL \u6253\u9020\u53ef\u89c6\u5316\u56fe\u5f62\u754c\u9762&#xff01;LVGL \u4f5c\u4e3a\u5d4c\u5165\u5f0f\u9886\u57df\u6700\u706b\u7684\u5f00\u6e90 GUI \u5e93&#xff0c;\u80fd\u5728 Linux\u3001\u5355\u7247\u673a\u7b49\u5e73\u53f0\u5feb\u901f\u6784\u5efa\u4ea4\u4e92\u5f0f\u754c\u9762&#xff0c;\u642d\u914d MP3 \u64ad\u653e\u529f\u80fd&#xff0c;\u5c31\u80fd\u5b9e\u73b0\u4e00\u6b3e\u517c\u5177\u989c\u503c\u548c\u5b9e\u7528\u6027\u7684\u5d4c\u5165<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[7603,174,58,585,1802,76,190],"topic":[],"class_list":["post-72255","post","type-post","status-publish","format-standard","hentry","category-server","tag-7603","tag-c","tag-linux","tag-ux","tag-vim","tag-vscode","tag-190"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u3010\u5d4c\u5165\u5f0f GUI \u5b9e\u6218\u3011LVGL+MP3 \u64ad\u653e\u5668\uff1a\u4ece\u73af\u5883\u642d\u5efa\u5230\u56fe\u5f62\u754c\u9762\u5f00\u53d1\u5168\u6307\u5357 - \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\/72255.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010\u5d4c\u5165\u5f0f GUI \u5b9e\u6218\u3011LVGL+MP3 \u64ad\u653e\u5668\uff1a\u4ece\u73af\u5883\u642d\u5efa\u5230\u56fe\u5f62\u754c\u9762\u5f00\u53d1\u5168\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u3010\u5d4c\u5165\u5f0f GUI \u5b9e\u6218\u3011LVGLMP3 \u64ad\u653e\u5668&#xff1a;\u4ece\u73af\u5883\u642d\u5efa\u5230\u56fe\u5f62\u754c\u9762\u5f00\u53d1\u5168\u6307\u5357 \u5927\u5bb6\u597d&#xff0c;\u6211\u662f\u4e13\u6ce8\u5d4c\u5165\u5f0f\u5f00\u53d1\u7684\u5c0f\u6768\u3002\u524d\u9762\u6211\u4eec\u7528 C \u8bed\u8a00\u5b9e\u73b0\u4e86\u7ec8\u7aef\u7248 MP3 \u64ad\u653e\u5668&#xff0c;\u4eca\u5929\u5c31\u7ed9\u5b83\u5347\u7ea7\u8fed\u4ee3 \u2014\u2014 \u7528 LVGL \u6253\u9020\u53ef\u89c6\u5316\u56fe\u5f62\u754c\u9762&#xff01;LVGL \u4f5c\u4e3a\u5d4c\u5165\u5f0f\u9886\u57df\u6700\u706b\u7684\u5f00\u6e90 GUI \u5e93&#xff0c;\u80fd\u5728 Linux\u3001\u5355\u7247\u673a\u7b49\u5e73\u53f0\u5feb\u901f\u6784\u5efa\u4ea4\u4e92\u5f0f\u754c\u9762&#xff0c;\u642d\u914d MP3 \u64ad\u653e\u529f\u80fd&#xff0c;\u5c31\u80fd\u5b9e\u73b0\u4e00\u6b3e\u517c\u5177\u989c\u503c\u548c\u5b9e\u7528\u6027\u7684\u5d4c\u5165\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/72255.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-02-05T01:05:00+00:00\" \/>\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=\"5 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/72255.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/72255.html\",\"name\":\"\u3010\u5d4c\u5165\u5f0f GUI \u5b9e\u6218\u3011LVGL+MP3 \u64ad\u653e\u5668\uff1a\u4ece\u73af\u5883\u642d\u5efa\u5230\u56fe\u5f62\u754c\u9762\u5f00\u53d1\u5168\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-02-05T01:05:00+00:00\",\"dateModified\":\"2026-02-05T01:05:00+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/72255.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/72255.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/72255.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010\u5d4c\u5165\u5f0f GUI \u5b9e\u6218\u3011LVGL+MP3 \u64ad\u653e\u5668\uff1a\u4ece\u73af\u5883\u642d\u5efa\u5230\u56fe\u5f62\u754c\u9762\u5f00\u53d1\u5168\u6307\u5357\"}]},{\"@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":"\u3010\u5d4c\u5165\u5f0f GUI \u5b9e\u6218\u3011LVGL+MP3 \u64ad\u653e\u5668\uff1a\u4ece\u73af\u5883\u642d\u5efa\u5230\u56fe\u5f62\u754c\u9762\u5f00\u53d1\u5168\u6307\u5357 - \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\/72255.html","og_locale":"zh_CN","og_type":"article","og_title":"\u3010\u5d4c\u5165\u5f0f GUI \u5b9e\u6218\u3011LVGL+MP3 \u64ad\u653e\u5668\uff1a\u4ece\u73af\u5883\u642d\u5efa\u5230\u56fe\u5f62\u754c\u9762\u5f00\u53d1\u5168\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u3010\u5d4c\u5165\u5f0f GUI \u5b9e\u6218\u3011LVGLMP3 \u64ad\u653e\u5668&#xff1a;\u4ece\u73af\u5883\u642d\u5efa\u5230\u56fe\u5f62\u754c\u9762\u5f00\u53d1\u5168\u6307\u5357 \u5927\u5bb6\u597d&#xff0c;\u6211\u662f\u4e13\u6ce8\u5d4c\u5165\u5f0f\u5f00\u53d1\u7684\u5c0f\u6768\u3002\u524d\u9762\u6211\u4eec\u7528 C \u8bed\u8a00\u5b9e\u73b0\u4e86\u7ec8\u7aef\u7248 MP3 \u64ad\u653e\u5668&#xff0c;\u4eca\u5929\u5c31\u7ed9\u5b83\u5347\u7ea7\u8fed\u4ee3 \u2014\u2014 \u7528 LVGL \u6253\u9020\u53ef\u89c6\u5316\u56fe\u5f62\u754c\u9762&#xff01;LVGL \u4f5c\u4e3a\u5d4c\u5165\u5f0f\u9886\u57df\u6700\u706b\u7684\u5f00\u6e90 GUI \u5e93&#xff0c;\u80fd\u5728 Linux\u3001\u5355\u7247\u673a\u7b49\u5e73\u53f0\u5feb\u901f\u6784\u5efa\u4ea4\u4e92\u5f0f\u754c\u9762&#xff0c;\u642d\u914d MP3 \u64ad\u653e\u529f\u80fd&#xff0c;\u5c31\u80fd\u5b9e\u73b0\u4e00\u6b3e\u517c\u5177\u989c\u503c\u548c\u5b9e\u7528\u6027\u7684\u5d4c\u5165","og_url":"https:\/\/www.wsisp.com\/helps\/72255.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-02-05T01:05:00+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"5 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/72255.html","url":"https:\/\/www.wsisp.com\/helps\/72255.html","name":"\u3010\u5d4c\u5165\u5f0f GUI \u5b9e\u6218\u3011LVGL+MP3 \u64ad\u653e\u5668\uff1a\u4ece\u73af\u5883\u642d\u5efa\u5230\u56fe\u5f62\u754c\u9762\u5f00\u53d1\u5168\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-02-05T01:05:00+00:00","dateModified":"2026-02-05T01:05:00+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/72255.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/72255.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/72255.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u3010\u5d4c\u5165\u5f0f GUI \u5b9e\u6218\u3011LVGL+MP3 \u64ad\u653e\u5668\uff1a\u4ece\u73af\u5883\u642d\u5efa\u5230\u56fe\u5f62\u754c\u9762\u5f00\u53d1\u5168\u6307\u5357"}]},{"@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\/72255","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=72255"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/72255\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=72255"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=72255"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=72255"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=72255"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}