{"id":88,"date":"2026-03-23T22:23:21","date_gmt":"2026-03-23T14:23:21","guid":{"rendered":"https:\/\/www.tom-thu.cn:18434\/?p=88"},"modified":"2026-03-23T22:23:21","modified_gmt":"2026-03-23T14:23:21","slug":"esp32%e7%89%a9%e7%90%86%e8%bf%9e%e7%82%b9%e5%99%a8%e4%b8%8a","status":"publish","type":"post","link":"https:\/\/www.tom-thu.cn\/?p=88","title":{"rendered":"ESP32\u7269\u7406\u8fde\u70b9\u5668(\u4e0a)"},"content":{"rendered":"<p><!DOCTYPE html><br \/>\n<html><br \/>\n<head><br \/>\n<title>publish.md<\/title><br \/>\n<meta http-equiv=\"Content-type\" content=\"text\/html;charset=UTF-8\"><\/p>\n<style>\n\/* https:\/\/github.com\/microsoft\/vscode\/blob\/master\/extensions\/markdown-language-features\/media\/markdown.css *\/\n\/*---------------------------------------------------------------------------------------------\n *  Copyright (c) Microsoft Corporation. All rights reserved.\n *  Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*\/<\/p>\n<p>body {\n\tfont-family: var(--vscode-markdown-font-family, -apple-system, BlinkMacSystemFont, \"Segoe WPC\", \"Segoe UI\", \"Ubuntu\", \"Droid Sans\", sans-serif);\n\tfont-size: var(--vscode-markdown-font-size, 14px);\n\tpadding: 0 26px;\n\tline-height: var(--vscode-markdown-line-height, 22px);\n\tword-wrap: break-word;\n}<\/p>\n<p>#code-csp-warning {\n\tposition: fixed;\n\ttop: 0;\n\tright: 0;\n\tcolor: white;\n\tmargin: 16px;\n\ttext-align: center;\n\tfont-size: 12px;\n\tfont-family: sans-serif;\n\tbackground-color:#444444;\n\tcursor: pointer;\n\tpadding: 6px;\n\tbox-shadow: 1px 1px 1px rgba(0,0,0,.25);\n}<\/p>\n<p>#code-csp-warning:hover {\n\ttext-decoration: none;\n\tbackground-color:#007acc;\n\tbox-shadow: 2px 2px 2px rgba(0,0,0,.25);\n}<\/p>\n<p>body.scrollBeyondLastLine {\n\tmargin-bottom: calc(100vh - 22px);\n}<\/p>\n<p>body.showEditorSelection .code-line {\n\tposition: relative;\n}<\/p>\n<p>body.showEditorSelection .code-active-line:before,\nbody.showEditorSelection .code-line:hover:before {\n\tcontent: \"\";\n\tdisplay: block;\n\tposition: absolute;\n\ttop: 0;\n\tleft: -12px;\n\theight: 100%;\n}<\/p>\n<p>body.showEditorSelection li.code-active-line:before,\nbody.showEditorSelection li.code-line:hover:before {\n\tleft: -30px;\n}<\/p>\n<p>.vscode-light.showEditorSelection .code-active-line:before {\n\tborder-left: 3px solid rgba(0, 0, 0, 0.15);\n}<\/p>\n<p>.vscode-light.showEditorSelection .code-line:hover:before {\n\tborder-left: 3px solid rgba(0, 0, 0, 0.40);\n}<\/p>\n<p>.vscode-light.showEditorSelection .code-line .code-line:hover:before {\n\tborder-left: none;\n}<\/p>\n<p>.vscode-dark.showEditorSelection .code-active-line:before {\n\tborder-left: 3px solid rgba(255, 255, 255, 0.4);\n}<\/p>\n<p>.vscode-dark.showEditorSelection .code-line:hover:before {\n\tborder-left: 3px solid rgba(255, 255, 255, 0.60);\n}<\/p>\n<p>.vscode-dark.showEditorSelection .code-line .code-line:hover:before {\n\tborder-left: none;\n}<\/p>\n<p>.vscode-high-contrast.showEditorSelection .code-active-line:before {\n\tborder-left: 3px solid rgba(255, 160, 0, 0.7);\n}<\/p>\n<p>.vscode-high-contrast.showEditorSelection .code-line:hover:before {\n\tborder-left: 3px solid rgba(255, 160, 0, 1);\n}<\/p>\n<p>.vscode-high-contrast.showEditorSelection .code-line .code-line:hover:before {\n\tborder-left: none;\n}<\/p>\n<p>img {\n\tmax-width: 100%;\n\tmax-height: 100%;\n}<\/p>\n<p>a {\n\ttext-decoration: none;\n}<\/p>\n<p>a:hover {\n\ttext-decoration: underline;\n}<\/p>\n<p>a:focus,\ninput:focus,\nselect:focus,\ntextarea:focus {\n\toutline: 1px solid -webkit-focus-ring-color;\n\toutline-offset: -1px;\n}<\/p>\n<p>hr {\n\tborder: 0;\n\theight: 2px;\n\tborder-bottom: 2px solid;\n}<\/p>\n<p>h1 {\n\tpadding-bottom: 0.3em;\n\tline-height: 1.2;\n\tborder-bottom-width: 1px;\n\tborder-bottom-style: solid;\n}<\/p>\n<p>h1, h2, h3 {\n\tfont-weight: normal;\n}<\/p>\n<p>table {\n\tborder-collapse: collapse;\n}<\/p>\n<p>table > thead > tr > th {\n\ttext-align: left;\n\tborder-bottom: 1px solid;\n}<\/p>\n<p>table > thead > tr > th,\ntable > thead > tr > td,\ntable > tbody > tr > th,\ntable > tbody > tr > td {\n\tpadding: 5px 10px;\n}<\/p>\n<p>table > tbody > tr + tr > td {\n\tborder-top: 1px solid;\n}<\/p>\n<p>blockquote {\n\tmargin: 0 7px 0 5px;\n\tpadding: 0 16px 0 10px;\n\tborder-left-width: 5px;\n\tborder-left-style: solid;\n}<\/p>\n<p>code {\n\tfont-family: Menlo, Monaco, Consolas, \"Droid Sans Mono\", \"Courier New\", monospace, \"Droid Sans Fallback\";\n\tfont-size: 1em;\n\tline-height: 1.357em;\n}<\/p>\n<p>body.wordWrap pre {\n\twhite-space: pre-wrap;\n}<\/p>\n<p>pre:not(.hljs),\npre.hljs code > div {\n\tpadding: 16px;\n\tborder-radius: 3px;\n\toverflow: auto;\n}<\/p>\n<p>pre code {\n\tcolor: var(--vscode-editor-foreground);\n\ttab-size: 4;\n}<\/p>\n<p>\/** Theming *\/<\/p>\n<p>.vscode-light pre {\n\tbackground-color: rgba(220, 220, 220, 0.4);\n}<\/p>\n<p>.vscode-dark pre {\n\tbackground-color: rgba(10, 10, 10, 0.4);\n}<\/p>\n<p>.vscode-high-contrast pre {\n\tbackground-color: rgb(0, 0, 0);\n}<\/p>\n<p>.vscode-high-contrast h1 {\n\tborder-color: rgb(0, 0, 0);\n}<\/p>\n<p>.vscode-light table > thead > tr > th {\n\tborder-color: rgba(0, 0, 0, 0.69);\n}<\/p>\n<p>.vscode-dark table > thead > tr > th {\n\tborder-color: rgba(255, 255, 255, 0.69);\n}<\/p>\n<p>.vscode-light h1,\n.vscode-light hr,\n.vscode-light table > tbody > tr + tr > td {\n\tborder-color: rgba(0, 0, 0, 0.18);\n}<\/p>\n<p>.vscode-dark h1,\n.vscode-dark hr,\n.vscode-dark table > tbody > tr + tr > td {\n\tborder-color: rgba(255, 255, 255, 0.18);\n}<\/p>\n<\/style>\n<style>\n\/* Tomorrow Theme *\/\n\/* http:\/\/jmblog.github.com\/color-themes-for-google-code-highlightjs *\/\n\/* Original theme - https:\/\/github.com\/chriskempson\/tomorrow-theme *\/<\/p>\n<p>\/* Tomorrow Comment *\/\n.hljs-comment,\n.hljs-quote {\n\tcolor: #8e908c;\n}<\/p>\n<p>\/* Tomorrow Red *\/\n.hljs-variable,\n.hljs-template-variable,\n.hljs-tag,\n.hljs-name,\n.hljs-selector-id,\n.hljs-selector-class,\n.hljs-regexp,\n.hljs-deletion {\n\tcolor: #c82829;\n}<\/p>\n<p>\/* Tomorrow Orange *\/\n.hljs-number,\n.hljs-built_in,\n.hljs-builtin-name,\n.hljs-literal,\n.hljs-type,\n.hljs-params,\n.hljs-meta,\n.hljs-link {\n\tcolor: #f5871f;\n}<\/p>\n<p>\/* Tomorrow Yellow *\/\n.hljs-attribute {\n\tcolor: #eab700;\n}<\/p>\n<p>\/* Tomorrow Green *\/\n.hljs-string,\n.hljs-symbol,\n.hljs-bullet,\n.hljs-addition {\n\tcolor: #718c00;\n}<\/p>\n<p>\/* Tomorrow Blue *\/\n.hljs-title,\n.hljs-section {\n\tcolor: #4271ae;\n}<\/p>\n<p>\/* Tomorrow Purple *\/\n.hljs-keyword,\n.hljs-selector-tag {\n\tcolor: #8959a8;\n}<\/p>\n<p>.hljs {\n\tdisplay: block;\n\toverflow-x: auto;\n\tcolor: #4d4d4c;\n\tpadding: 0.5em;\n}<\/p>\n<p>.hljs-emphasis {\n\tfont-style: italic;\n}<\/p>\n<p>.hljs-strong {\n\tfont-weight: bold;\n}\n<\/style>\n<style>\n\/*\n * Markdown PDF CSS\n *\/<\/p>\n<p> body {\n\tfont-family: -apple-system, BlinkMacSystemFont, \"Segoe WPC\", \"Segoe UI\", \"Ubuntu\", \"Droid Sans\", sans-serif, \"Meiryo\";\n\tpadding: 0 12px;\n}<\/p>\n<p>pre {\n\tbackground-color: #f8f8f8;\n\tborder: 1px solid #cccccc;\n\tborder-radius: 3px;\n\toverflow-x: auto;\n\twhite-space: pre-wrap;\n\toverflow-wrap: break-word;\n}<\/p>\n<p>pre:not(.hljs) {\n\tpadding: 23px;\n\tline-height: 19px;\n}<\/p>\n<p>blockquote {\n\tbackground: rgba(127, 127, 127, 0.1);\n\tborder-color: rgba(0, 122, 204, 0.5);\n}<\/p>\n<p>.emoji {\n\theight: 1.4em;\n}<\/p>\n<p>code {\n\tfont-size: 14px;\n\tline-height: 19px;\n}<\/p>\n<p>\/* for inline code *\/\n:not(pre):not(.hljs) > code {\n\tcolor: #C9AE75; \/* Change the old color so it seems less like an error *\/\n\tfont-size: inherit;\n}<\/p>\n<p>\/* Page Break : use <\/p>\n<div class=\"page\"\/> to insert page break\n-------------------------------------------------------- *\/\n.page {\n\tpage-break-after: always;\n}<\/p>\n<\/style>\n<p><script src=\"https:\/\/unpkg.com\/mermaid\/dist\/mermaid.min.js\"><\/script><br \/>\n<\/head><br \/>\n<body><br \/>\n  <script>\n    mermaid.initialize({\n      startOnLoad: true,\n      theme: document.body.classList.contains('vscode-dark') || document.body.classList.contains('vscode-high-contrast')\n          ? 'dark'\n          : 'default'\n    });\n  <\/script><\/p>\n<h1 id=\"esp32%E7%89%A9%E7%90%86%E8%BF%9E%E7%82%B9%E5%99%A8\">ESP32\u7269\u7406\u8fde\u70b9\u5668<\/h1>\n<blockquote>\n<p>\u4e2a\u4eba\u89c2\u70b9\uff0c\u4ec5\u4f9b\u53c2\u8003<\/p>\n<\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/www.tom-thu.cn\/wp-content\/uploads\/2026\/03\/1774275735-effect-scaled.jpg\" alt=\"\u56fe\u7247\"><\/p>\n<hr>\n<h2 id=\"%E7%BC%98%E8%B5%B7\">\u7f18\u8d77<\/h2>\n<p>\u8d77\u56e0\u662f\u4e0a\u4e0a\u4e2a\u661f\u671f\u5728\u6211\u7684\u4e16\u754c\u91cc\u9020\u4e86\u4e00\u4e2a\u534a\u81ea\u52a8\u9493\u9c7c\u673a\uff0c\u9700\u8981\u6bcf\u96945\u79d2\u70b9\u51fb\u4e00\u6b21\u9f20\u6807\u53f3\u952e\u3002\u5f53\u65f6\u6211\u60f3\u7740\u7528\u4e00\u4e2a\u666e\u901a\u7684\u8fde\u70b9\u5668\u6765\u81ea\u52a8\u9493\u9c7c\uff0c\u5b9e\u8df5\u540e\u53d1\u73b0\u6839\u672c\u4e0d\u884c\ud83d\ude05<\/p>\n<p>\u6700\u5f00\u59cb\u6211\u4ee5\u4e3a\u662f\u9f20\u6807\u7684\u95ee\u9898\u3002\u8fde\u70b9\u5668\u662f\u865a\u62df\u9f20\u6807\uff0c\u800c\u771f\u5b9e\u9f20\u6807\u662f\u7269\u7406\u9f20\u6807\uff0c\u4e8e\u662f\u4e00\u4e2a\u5f88\u6734\u7d20\u7684\u60f3\u6cd5\u8bde\u751f\u4e86\uff1a<\/p>\n<ul>\n<li><strong>\u8bf6\ud83e\udd13\ud83d\udc46\u5982\u679c\u6211\u5916\u63a5\u4e00\u4e2a\u771f\u5b9e\u7684\u6a21\u62df\u7269\u7406\u9f20\u6807\u7684\u8bbe\u5907\uff0c\u90a3\u5728\u7535\u8111\u770b\u6765\u4e0d\u5c31\u662f\u4e00\u4e2a\u771f\u6b63\u7684\u9f20\u6807\u53d1\u8d77\u7684\u70b9\u51fb\u64cd\u4f5c\u5417\ud83e\udd17<\/strong><\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/www.tom-thu.cn\/wp-content\/uploads\/2026\/03\/1774275733-cmd.png\" alt=\"pic\"><\/p>\n<p>\u597d\u5de7\u4e0d\u5de7\uff0c\u5f3a\u5927\u7684 esp32\u65e9\u5c31\u53ef\u4ee5\u6a21\u62df\u84dd\u7259\u9f20\u6807\uff0c\u6211\u53ea\u9700\u8981\u5b66\u4f1a\u5982\u4f55\u628a\u7a0b\u5e8f\u5199\u5165\u5355\u7247\u673a\u5c31\u53ef\u4ee5\u4e86\ud83e\udd29<\/p>\n<p>\u60f3\u6cd5\u662f\u7f8e\u597d\u7684\uff0c\u9053\u8def\u662f\u66f2\u6298\u7684\u3002<\/p>\n<h2 id=\"%E6%9D%BF%E5%AD%90%E4%B8%8D%E5%B7%A5%E4%BD%9C%E4%BA%86\">\u677f\u5b50\u4e0d\u5de5\u4f5c\u4e86\uff1f\uff1f\uff1f<\/h2>\n<p>\u8d77\u521d\uff0cesp32\u5f88\u7ed9\u529b\uff0c\u6211\u4e00\u6b21\u5c31\u6210\u529f\u542f\u52a8\u9f20\u6807\u8fde\u70b9\u3002\u4ee3\u7801 ai \u5199\uff0c\u6211\u53ea\u9700\u8981\u5b66\u5982\u4f55\u7f16\u8bd1\u3002<\/p>\n<p>\u6d41\u7a0b\u8dd1\u901a\u540e\uff0c\u6211\u628a\u5199\u4e86\u4e2a\u7a7a\u51fd\u6570\u6765\u5173\u6389\u8fde\u70b9\u5668\uff0c\u6253\u7b97\u540e\u9762\u6162\u6162\u6539\uff0c\u7136\u540e\u5f00\u5fc3\u5730\u73a9\u6e38\u620f\u53bb\u4e86\u3002<\/p>\n<p>\u73a9\u5b8c\u6e38\u620f\u5929\u584c\u4e86\uff1a\u6211\u91cd\u65b0\u4e0a\u4f20\u4ee3\u7801\uff0c\u5728\u8c03\u8bd5\u4e32\u53e3\u91cc\u9762\u5374\u6ca1\u6709\u8f93\u51fa\uff01\u6700\u8be1\u5f02\u7684\u662f\uff0c\u7f16\u8bd1\u548c\u4e0a\u4f20\u7684\u8fc7\u7a0b\u90fd\u662f\u6b63\u5e38\u7684\uff01<\/p>\n<p>\u4e8e\u662f\u6211\u95ee ai\u3002\u5b83\u8981\u4e0d\u662f\u53cd\u590d\u7ed9\u6211\u4fee\u6539\u5355\u7247\u673a\u70e7\u5f55\u7684\u914d\u7f6e\uff0c\u8981\u4e0d\u5c31\u662f\u53cd\u590d\u7ed9\u6211\u201c\u6700\u5c0f\u8c03\u8bd5\u4ee3\u7801\u201d\u3002\u7b2c\u4e8c\u5929\u4e0b\u5348\uff0c\u6211\u65b0\u5f00\u4e86\u4e00\u4e2a\u5bf9\u8bdd\u804a\u4e86\u534a\u5c0f\u65f6\u8fd8\u662f\u548c\u4e4b\u524d\u7c7b\u4f3c\u7684\u7ed3\u679c\u3002\u6211\u53c8\u82b1\u4e86\u4e00\u4e2a\u5c0f\u65f6\u8ba9 ai \u4e0a\u7f51\u627e\u8d44\u6599\uff0c\u81ea\u5df1\u770b\u8bba\u575b\u627e\u6280\u672f\u624b\u518c\uff0c\u6298\u817e\u5f88\u4e45\u8fd8\u662f\u4e00\u6837\u7684\u8be1\u5f02\u73b0\u8c61\u3002<\/p>\n<p>\u540e\u6765\uff0c ai \u5efa\u8bae\u6211\u91cd\u5199\u5206\u533a\u8868\uff0c\u91cd\u65b0\u5b89\u88c5 bootloader\uff0c\u6211\u770b\u4e86\u770b\u65b9\u6848\u76f4\u63a5\u53f9\u4e86\u4e00\u53e3\u6c14\uff1a\u8981\u771f\u8fd9\u6837\u90a3\u4e0d\u5f97 debug \u5230\u7334\u5e74\u9a6c\u6708\u554a\uff01\u8fd9\u677f\u5b50\u662f\u624d\u5230\u7684\u65b0\u677f\u5b50\u554a\ud83d\ude2d\ud83d\ude2d<\/p>\n<p>\u6b63\u5f53\u6211\u60f3\u8981\u653e\u5f03\u4e4b\u65f6\uff0c\u6211\u5bdf\u89c9\u5230\u4e86\u4e00\u4e2a\u5f88\u795e\u5947\u7684\u73b0\u8c61\uff1a\u6211\u5728 main.cpp \u91cc\u9762\u4e0d\u5c0f\u5fc3\u52a0\u5165\u4e86\u975e\u6cd5\u5b57\u7b26\uff0c\u5c45\u7136\u53ef\u4ee5\u7f16\u8bd1\u901a\u8fc7\uff1f\uff01\ud83d\ude21<\/p>\n<p>ai \u8bf4\uff0c\u8fd9\u53ef\u80fd\u662f\u56e0\u4e3a\u7248\u672c\u8bbe\u7f6e\u4e0d\u5f53\uff0c\u800c\u5bfc\u81f4\u7f16\u8bd1\u5668\u8ba4\u4e3a\u5f53\u524d\u7248\u672c\u662f\u65e7\u7248\u672c\u800c\u975e\u65b0\u7248\u672c\uff0c\u8fdb\u800c\u4e0d\u7f16\u8bd1\u3002<\/p>\n<p>\u6211\u542c\u4e86\u542c\u611f\u89c9\u597d\u6ca1\u9053\u7406\uff1a\u65f6\u95f4\u8bbe\u7f6e\u51ed\u4ec0\u4e48\u4e0d\u5f53\uff1f\u6211\u7684\u7cfb\u7edf\u65f6\u95f4\u4e0d\u592a\u53ef\u80fd\u51fa\u8fc7\u95ee\u9898\uff0c\u6240\u4ee5\u8fd9\u4e2a\u89e3\u91ca\u4e0d\u6210\u7acb\u554a\u3002<\/p>\n<p>\u6ce8\u610f\u5230 ai \u63d0\u5230\u5f53\u524d\u7f16\u8bd1\u7684\u4ee3\u7801\u548c\u6211\u671f\u671b\u7f16\u8bd1\u7684\u4ee3\u7801\u4e0d\u4e00\u6837\uff0c\u6211\u5ffd\u7136\u60f3\u5230\u4e86\u4ec0\u4e48\u3002<\/p>\n<p>\u6211\u60f3\u7740\uff1a\u65e2\u7136\u771f\u6b63\u7f16\u8bd1\u7684\u548c\u6211\u4e00\u76f4\u4fee\u6539\u7684\u4e0d\u4e00\u6837\uff0c\u90a3\u4e00\u5b9a\u5b58\u5728\u4e00\u4e2a\u7f16\u8bd1\u5668\u771f\u6b63\u7f16\u8bd1\u7684\u4ee3\u7801\u6587\u4ef6\u3002\u8fd9\u4e2a\u6587\u4ef6\u5728\u54ea\u91cc\u5462\uff1f\ud83e\udd14<\/p>\n<p>\u6211\u767e\u601d\u4e0d\u5f97\u5176\u89e3\uff0c\u51b3\u5b9a\u65b0\u5efa\u9879\u76ee\u3002\u65b0\u5efa\u9879\u76ee\u540e\uff0c\u6211\u53d1\u73b0\u9879\u76ee\u6839\u76ee\u5f55\u4e0b\u5c45\u7136\u6ca1\u6709 main.cpp\uff01\uff01\uff01\u4ed4\u7ec6\u89c2\u5bdf\u76ee\u5f55\u7ed3\u6784\uff0c\u53d1\u73b0\u6709\u4e00\u4e2a src \u6587\u4ef6\u5939\uff0c\u6253\u5f00\u53d1\u73b0 main.cpp \u9759\u9759\u5730\u8eba\u5728\u90a3\u91cc\u3002\ud83d\ude28<\/p>\n<p>\u6211\u77ac\u95f4\u7406\u89e3\u4e86\u4e00\u5207\u3002<\/p>\n<ul>\n<li><strong>\u539f\u6765\u6211\u4e4b\u524d\u4e00\u76f4\u4fee\u6539\u7684\u6839\u76ee\u5f55\u4e0b\u7684main.cpp \u662f\u6211\u81ea\u5df1\u521b\u5efa\u7684\uff0c\u800c\u7f16\u8bd1\u5668\u7f16\u8bd1\u7684\u662f src \u6587\u4ef6\u4e0b\u4e0b\u7684\u4ee3\u7801\u6587\u4ef6\u3002\ud83d\ude30<\/strong><\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/www.tom-thu.cn\/wp-content\/uploads\/2026\/03\/1774275739-identical.jpg\" alt=\"\u56fe\u7247\"><\/p>\n<p>\u6211\u66fe\u4ee5\u4e3a\u662f\u4ee3\u7801\u95ee\u9898\uff0c\u82b1\u4e86\u4e24\u4e2a\u534a\u5c0f\u65f6 debug\uff0c\u4ee5\u4e3a\u677f\u5b50\u574f\u4e86\uff0c\u6ca1\u60f3\u5230\u771f\u76f8\u7adf\u5982\u6b64\u7b80\u5355\uff1a\u6211 debug \u7684\u8fd9\u4e24\u4e2a\u591a\u5c0f\u65f6\uff0c\u6839\u672c\u6ca1\u52a8\u8fc7\u771f\u6b63\u7f16\u8bd1\u7684 main.cpp\uff01\uff01\uff01<\/p>\n<p><strong>\u518d\u4e00\u6b21\u88ab\u81ea\u5df1\u8822\u7b11\u4e86\ud83e\udd21\ud83d\udc48\ud83e\udd23<\/strong><\/p>\n<h2 id=\"%E4%BD%A0%E8%AF%B4%E5%BE%97%E5%AF%B9%E4%BD%86%E6%98%AF%E6%88%91%E7%9A%84%E4%B8%96%E7%95%8C%E4%B8%8D%E8%AE%A4%E8%BF%9E%E7%82%B9%E5%99%A8%E5%95%8A\">\u4f60\u8bf4\u5f97\u5bf9\uff0c\u4f46\u662f\u300a\u6211\u7684\u4e16\u754c\u300b\u4e0d\u8ba4\u8fde\u70b9\u5668\u554a<\/h2>\n<p>\u4f46\u65b0\u7684\u95ee\u9898\u53c8\u6765\u4e86\uff1a\u89e3\u51b3\u4e86\u677f\u5b50\u201c\u4e0d\u5de5\u4f5c\u201d\u7684\u95ee\u9898\uff0c\u6211\u7684\u4e16\u754c\u4e0d\u8ba4 esp32 \u7684\u60c5\u51b5\u4f9d\u7136\u5b58\u5728\u3002\u6211\u4e0a\u7f51\u641c\u4e86\u5f88\u591a\u653b\u7565\uff0c\u90fd\u6ca1\u627e\u5230\u89e3\u51b3\u529e\u6cd5\u3002<\/p>\n<p>ai \u4e00\u76f4\u7ed9\u6211\u704c\u8f93\u4ec0\u4e48\u201c\u6e38\u620f\u4f1a\u8ba4\u9f20\u6807\u5236\u9020\u5546\u201d\u201c\u56e0\u4e3a\u70b9\u51fb\u9891\u7387\u56fa\u5b9a\u800c\u88ab\u5224\u5b9a\u4e3a\u8fde\u70b9\u5668\u201d\u4e4b\u7c7b\u7684\u89c2\u70b9\u3002\u6211\u770b\u7740 ai \u6240\u8f93\u51fa\u7684\u5185\u5bb9\uff0c\u611f\u89c9\u5b83\u6240\u8bf4\u7684\u770b\u4e0a\u53bb\u6709\u9053\u7406\uff0c\u4f46\u5b9e\u9645\u53d1\u751f\u7684\u6982\u7387\u592a\u5c0f\u4e86\uff0c\u4e0d\u7b26\u5408\u5e38\u89c4\u903b\u8f91\u3002<\/p>\n<p>\u6211\u518d\u4e00\u6b21\u6ce8\u610f\u5230\u4e86\u4e00\u4e2a\u7ec6\u8282\u3002\u4e00\u6b21\u548cai\u5bf9\u8bdd\u7684\u8fc7\u7a0b\u4e2d\uff0c\u6211\u65e0\u610f\u95f4\u63d0\u5230\u201c\u7834\u574f\u65b9\u5757\u7684\u65f6\u95f4\u201d\u3002\u540c\u65f6\uff0c\u4e4b\u524d\u5728\u8ba9ai\u89e3\u6790blemouse.h\u5e93\u5e95\u5c42\u4ee3\u7801\u5b9e\u73b0\u7684\u65f6\u5019\uff0c\u6211\u610f\u8bc6\u5230\u70b9\u51fb\u9f20\u6807\u548c\u5f39\u8d77\u9f20\u6807\u662f\u4e24\u4e2a\u4e0d\u540c\u7684\u4e8b\u4ef6\uff0c\u800c\u8fd9\u4e24\u4e2a\u4e8b\u4ef6\u4e2d\u95f4\u6709\u4e00\u5b9a\u7684\u65f6\u95f4\u5dee\u3002\u6211\u7a81\u7136\u610f\u8bc6\u5230\u4e00\u4e2a\u4e8b\u60c5\uff1a<\/p>\n<ul>\n<li><strong>\u4e5f\u8bb8\u201c\u653e\u7f6e\u65b9\u5757\u201d\u8fd9\u6837\u770b\u4f3c\u5728\u4e00\u77ac\u95f4\u5b8c\u6210\u7684\u64cd\u4f5c\uff0c\u5176\u5b9e\u4e5f\u9700\u8981\u4e00\u4e2a\u5728\u5f88\u5c0f\u65f6\u95f4\u5185\u6309\u4f4f\u9f20\u6807\u4e0d\u653e\u7684\u8fc7\u7a0b\u5462\uff1f<\/strong><\/li>\n<\/ul>\n<p>\u6211\u6d4b\u4e86\u4e00\u4e0b\u6211\u70b9\u51fb\u9f20\u6807\u7684\u901f\u5ea6\u3002\u4e00\u79d2\u949f\u6211\u6700\u591a\u70b95\uff5e6\u4e0b\uff0c\u610f\u5473\u7740\u6211\u6309\u4f4f\u9f20\u6807\u4e0d\u653e\u8fd9\u4e2a\u72b6\u6001\u6301\u7eed\u4e86\u5927\u6982200ms\u5de6\u53f3\u3002\u800c\u8fde\u70b9\u5668\u5462\uff1f\u5b83\u5b8c\u6210\u9f20\u6807\u70b9\u51fb\u7684\u64cd\u4f5c\u51e0\u4e4e\u5728\u201c\u4e00\u77ac\u95f4\u201d\uff0c\u5728\u51e0\u6beb\u79d2\u5185\u5c31\u5b8c\u6210\u4e86\u4e00\u6b21\u9f20\u6807\u6309\u952e\u7684\u6309\u4e0b\u548c\u62ac\u8d77\u3002<\/p>\n<p>\u6211\u7a81\u7136\u987f\u609f\u4e86\u3002\u6211\u7684\u4e16\u754c\u539f\u6765\u8fd8\u6709\u8fd9\u6837\u7684\u673a\u5236\uff1a<\/p>\n<p><strong>\u5373\u4f7f\u662f\u629b\u51fa\u9c7c\u7aff\u8fd9\u6837\u770b\u4e0a\u53bb\u5728\u4e00\u77ac\u95f4\u5b8c\u6210\u7684\u64cd\u4f5c\uff0c\u5176\u5b9e\u8fd8\u662f\u9700\u8981\u6211\u4eec\u6309\u4f4f\u9f20\u6807\u4e0d\u653e\u4e00\u6bb5\u65f6\u95f4\u7684\u3002\u5982\u679c\u9f20\u6807\u6309\u4e0b\u548c\u5f39\u8d77\u7684\u95f4\u9694\u8fc7\u77ed\uff0c\u8fd9\u6837\u7684\u70b9\u51fb\u4f1a\u88ab\u6e38\u620f\u76f4\u63a5\u629b\u5f03\u3002<\/strong><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.tom-thu.cn\/wp-content\/uploads\/2026\/03\/1774275738-explain.png\" alt=\"pic\"><\/p>\n<p>\u5982\u679c\u6211\u95eeai\uff0c\u4e3a\u4ec0\u4e48\u6211\u7684\u4e16\u754c\u4e0d\u8ba4\u6211\u7684esp32\u7684\u9f20\u6807\u70b9\u51fb\uff0c\u6211\u60f3\u5b83\u5927\u6982\u7387\u4f1a\u8bf4\u201c\u7269\u7406\u9f20\u6807\u548cesp32\u53d1\u9001\u7684HID\u6570\u636e\u5305\u4e0d\u4e00\u6837\u201d\u201c\u6211\u7684\u4e16\u754c\u4f1a\u8ba4\u5236\u9020\u5546\u201d\uff0c\u8fdb\u800c\u8ba9\u6211\u53bb\u8d70USB HID\u3001\u6539\u5236\u9020\u5546\u7b49\u7b49\u6beb\u4e0d\u76f8\u5e72\u7684\u64cd\u4f5c\u3002<\/p>\n<p>\u627e\u5230\u539f\u56e0\u540e\uff0c\u4e8b\u60c5\u4e00\u4e0b\u5c31\u7b80\u5355\u4e86\u3002\u6211\u8ba9\u5199\u4e86\u4e00\u6bb5\u4ee3\u7801\uff0c\u53ef\u4ee5\u81ea\u5df1\u63a7\u5236\u6309\u4e0b\u548c\u5f39\u8d77\u7684\u95f4\u9694\u7b49\u53c2\u6570\uff0c\u8fd8\u5c01\u88c5\u4e86\u63a5\u53e3\uff0c\u65b9\u4fbf\u540e\u7eedpython\u7a0b\u5e8f\u8c03\u7528\u3002\u4e00\u4e24\u5206\u949f\u540e\uff0c\u8fde\u70b9\u5668\u5728\u6e38\u620f\u5185\u6210\u529f\u8fd0\u884c\u4e86\uff01<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.tom-thu.cn\/wp-content\/uploads\/2026\/03\/1774275740-ble.jpg\" alt=\"pic\"><\/p>\n<h2 id=\"%E5%B0%BE%E5%A3%B0\">\u5c3e\u58f0<\/h2>\n<p>\u4e5f\u8bb8\u540e\u7eed\u6211\u4f1a\u5f00\u53d1\u4e00\u4e2apython\u524d\u7aef\u6765\u8c03\u7528\u8fde\u70b9\u5668\uff0c\u4f46\u8fd9\u53ef\u80fd\u9700\u8981\u6211\u5b66\u4e60qt\u3002\u5176\u5b9e\u6700\u5927\u7684\u9650\u5236\u56e0\u7d20\u662f\u65f6\u95f4\u3002\u6700\u8fd1\u611f\u89c9\u6709\u4e00\u5806DDL\u5728\u8ffd\u7740\u6211\u6740\uff0c\u5982\u679c\u6709\u7a7a\u5b66\u5b66qt\u641e\u4e00\u4e2a\u524d\u7aef\u51fa\u6765\u5427\uff01\uff08\u4e0d\u8fc7\u611f\u89c9\u6700\u8fd1\u6709\u70b9\u4e0d\u592a\u53ef\u80fd\u4e86\u545c\u545c\u545c\u545c\uff09<\/p>\n<p>\u4ee5\u53ca\uff0c\u638c\u63e1\u4e86\u8fd9\u4e2a\u539f\u7406\uff0c\u5176\u5b9e\u6211\u7684\u4e16\u754c\u8fde\u70b9\u5668\u6ca1\u5fc5\u8981\u7528ESP32\uff1f\ud83e\udd14\u8ba9AI\u5199\u4e00\u4e2a\u5728\u6309\u4e0b\u548c\u6682\u505c\u4e2d\u95f4\u6709\u65f6\u95f4\u95f4\u9694\u7684\u8fde\u70b9\u5668\u5c82\u4e0d\u7f8e\u54c9\uff1f\u4e0d\u8fc7ESP32\u5df2\u7ecf\u4e70\u4e86\uff0c\u918b\u90fd\u51c6\u5907\u597d\u7684\uff0c\u5305\u76d8\u997a\u5b50\u4e0d\u4e5f\u662f\u4e00\u4ef6\u6ca1\u4e8b\u5417\uff1f<\/p>\n<p>\u603b\u4e4b\uff0cai\u597d\u7528\uff0c\u4e5f\u4e0d\u597d\u7528\u3002\u5f88\u591a\u4eba\u8bf4\u201cai\u4e00\u70b9\u4e5f\u4e0d\u597d\u7528\uff0c\u5b83\u8bf4\u7684\u6839\u672c\u4e0d\u662f\u6211\u60f3\u8981\u7684\u201d\u3002\u6211\u60f3\u53cd\u95ee\uff1a\u201c\u4f60\u8bf4\u60f3\u8981ai\u66f4\u806a\u660e\uff0c\u4f46\u4f60\u81ea\u5df1\u6709\u6ca1\u6709\u5148\u6210\u4e3a\u4e00\u4e2a\u806a\u660e\u7684\u63d0\u95ee\u8005\u5462\uff1f\u4f60\u81ea\u5df1\u6709\u6ca1\u6709\u6210\u4e3a\u4e00\u4e2a\u5584\u4e8e\u6355\u6349\u7ec6\u8282\u7684\u601d\u8003\u8005\u5462\uff1f\u7a76\u7adf\u662f\u4f60\u628aai\u5f53\u505a\u4f60\u7684\u5de5\u5177\uff0c\u8fd8\u662fai\u628a\u4f60\u5f53\u505a\u5b83\u6267\u884c\u4ee3\u7801\u3001\u590d\u5236\u7c98\u8d34\u8c03\u8bd5\u4fe1\u606f\u4e0e\u704c\u8f93\u5b83\u7684\u601d\u60f3\u7684\u5de5\u5177\u5462\uff1f\u201d<\/p>\n<p><\/body><br \/>\n<\/html><\/p>\n","protected":false},"excerpt":{"rendered":"<p>publish.md ESP32\u7269\u7406\u8fde\u70b9\u5668 \u4e2a\u4eba\u89c2\u70b9\uff0c\u4ec5\u4f9b\u53c2\u8003 \u7f18\u8d77 \u8d77\u56e0\u662f\u4e0a\u4e0a\u4e2a\u661f\u671f\u5728\u6211\u7684\u4e16\u754c\u91cc\u9020\u4e86\u4e00\u4e2a\u534a\u81ea\u52a8\u9493\u9c7c\u673a\uff0c\u9700\u8981\u6bcf\u96945\u79d2\u70b9\u51fb\u4e00\u6b21\u9f20\u6807\u53f3\u952e\u3002\u5f53\u65f6\u6211\u60f3\u7740\u7528\u4e00\u4e2a\u666e\u901a\u7684\u8fde\u70b9\u5668\u6765\u81ea\u52a8\u9493\u9c7c\uff0c\u5b9e\u8df5\u540e\u53d1\u73b0\u6839\u672c\u4e0d\u884c\ud83d\ude05 \u6700","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-88","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.tom-thu.cn\/index.php?rest_route=\/wp\/v2\/posts\/88","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tom-thu.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tom-thu.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tom-thu.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tom-thu.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=88"}],"version-history":[{"count":5,"href":"https:\/\/www.tom-thu.cn\/index.php?rest_route=\/wp\/v2\/posts\/88\/revisions"}],"predecessor-version":[{"id":98,"href":"https:\/\/www.tom-thu.cn\/index.php?rest_route=\/wp\/v2\/posts\/88\/revisions\/98"}],"wp:attachment":[{"href":"https:\/\/www.tom-thu.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=88"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tom-thu.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=88"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tom-thu.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=88"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}