{"id":509,"date":"2022-11-17T23:33:22","date_gmt":"2022-11-17T15:33:22","guid":{"rendered":"https:\/\/blog.osvlabs.com\/?p=509"},"modified":"2022-11-20T20:37:20","modified_gmt":"2022-11-20T12:37:20","slug":"esp32%e7%89%a9%e8%81%94%e7%bd%91%e6%a8%a1%e7%bb%84%e5%88%86%e4%ba%ab","status":"publish","type":"post","link":"https:\/\/blog.osvlabs.com\/?p=509","title":{"rendered":"ESP32\u7269\u8054\u7f51\u6a21\u7ec4\u5206\u4eab"},"content":{"rendered":"<h2>ESP32\u6a21\u7ec4\u5e94\u7528\u5206\u4eab<\/h2>\n<h3>\u80cc\u666f<\/h3>\n<p>\u7269\u8054\u7f51\u53ef\u4ee5\u5b9e\u73b0\u4e07\u7269\u4e92\u8054\uff0c\u7ed9\u6211\u4eec\u7684\u65e5\u5e38\u751f\u6d3b\u5e26\u6765\u4fbf\u6377\u3002\u4eca\u5929\u5206\u4eab\u7684\u662f\u4e50\u946b\u7684ESP32\u6a21\u7ec4\uff0c\u8be5\u6a21\u7ec4\u96c6\u6210WiFi2.4G\u548cBLE5.0\uff0c\u53ef\u4ee5\u5feb\u901f\u7684\u5f00\u53d1\u7269\u8054\u7f51\u5c0f\u9879\u76ee\u3002<\/p>\n<p>ESP32\u652f\u6301\u591a\u79cd\u5f00\u53d1\u8bed\u8a00\u5f00\u53d1\uff0cC\/C++\u7b49\uff0c\u53e6\u5916Micro-python\u4e5f\u53ef\u4ee5\u8fd0\u884c\u5728ESP32\u4e0a\uff0c\u8bed\u6cd5\u548cpython\u4e00\u6837\uff0c\u89e3\u91ca\u6027\u8bed\u8a00\uff0c\u7b80\u5355\uff0c\u597d\u7406\u89e3\u3002<\/p>\n<p>\u4eca\u5929\u6211\u4eec\u5c31\u5148\u4f7f\u7528Micro-python \u70b9\u4eae\u4e00\u4e2aLED\u706f\u6765\u5206\u4eab\u4e00\u4e0b\u5f00\u53d1\u8fc7\u7a0b\u3002<\/p>\n<h3>\u5f00\u53d1\u677f\u51c6\u5907<\/h3>\n<p>\u5165\u95e8\u5b66\u4e60\u4f7f\u7528Micro-Python\u5f00\u53d1ESP32\u53ef\u9009\u53d6\u4e50\u946b\u5b98\u65b9\u7684 ESP32-DevKitC\u5f00\u53d1\u677f \uff0c\u4e0a\u7535\u8fd0\u884c\u3001\u80fd\u70e7\u5199\u56fa\u4ef6\u5373\u53ef\u3002<\/p>\n<p><img src=\"https:\/\/docs.espressif.com\/projects\/esp-idf\/zh_CN\/latest\/esp32\/_images\/esp32-devkitc-functional-overview.jpg\" alt=\"ESP32\u5f00\u53d1\u677f\u56fe\u7247\" \/><\/p>\n<h2>\u5f00\u53d1\u5de5\u5177<\/h2>\n<p>Micro-Python\u7684\u5f00\u53d1\u5de5\u5177\u63a8\u8350\u4f7f\u7528 Thonny \uff0c\u8be5\u5de5\u5177\u96c6\u56fa\u4ef6\u70e7\u5f55\u3001Python Shell\u8c03\u8bd5\u3001\u6587\u4ef6\u7ba1\u7406\u4e8e\u4e00\u4f53\uff0c\u662f\u6bd4\u8f83\u9002\u5408Micro-Python\u5f00\u53d1\u7684\u3002\u5176\u5b98\u65b9\u7f51\u7ad9\u5730\u5740\u5982\u4e0b\uff1a<\/p>\n<p><a href=\"https:\/\/thonny.org\/\">https:\/\/thonny.org<\/a><\/p>\n<p><img src=\"https:\/\/img-blog.csdnimg.cn\/20200115110351507.gif\" alt=\"\u5f00\u53d1\u5de5\u5177\u4ecb\u7ecd\" \/><\/p>\n<h3>\u56fa\u4ef6\u4e0b\u8f7d\u4e0e\u70e7\u5f55<\/h3>\n<ul>\n<li>\u56fa\u4ef6\u4e0b\u8f7d\u53ef\u4ee5\u4eceMicroPython\u5b98\u7f51\u8fdb\u884c\u4e0b\u8f7d\u3002\u9009\u53d6\u5f00\u53d1\u677f\u5bf9\u5e94\u7684\u578b\u53f7\u3002<\/li>\n<\/ul>\n<p><a href=\"https:\/\/micropython.org\/\">https:\/\/micropython.org\/<\/a><\/p>\n<p><img src=\"https:\/\/blog.osvlabs.com\/wp-content\/uploads\/2022\/11\/fwdownload.png\" alt=\"\u56fa\u4ef6\u4e0b\u8f7d\" \/><\/p>\n<ul>\n<li>\u4f7f\u7528Thonny\u8fdb\u884c\u70e7\u5f55,\u53c2\u8003\u5982\u4e0b\u56fe\u7247<\/li>\n<\/ul>\n<p><img src=\"https:\/\/img-blog.csdnimg.cn\/20200115115124894.gif\" alt=\"\u56fa\u4ef6\u70e7\u5f55\" \/><\/p>\n<h3>\u7b2c\u4e00\u4e2a\u5b9e\u6218\u7a0b\u5e8f<\/h3>\n<p>\u5728\u56fa\u4ef6\u70e7\u5f55\u5b8c\u6210\u540e\u590d\u4f4d\u82af\u7247\u7a0b\u5e8f\u5c31\u5f00\u59cb\u6267\u884c\uff0c\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u4f1a\u8fdb\u5165Python Shell\u4ea4\u4e92\u73af\u5883\u3002 MicroPython For ESP32\u9ed8\u8ba4\u4f7f\u7528 <strong><strong>UART0<\/strong><\/strong> \u8fdb\u884c\u4ea4\u4e92\uff0c\u9ed8\u8ba4\u6ce2\u7279\u7387\u4e3a <strong><strong>115200<\/strong><\/strong> \uff0c <strong>MicroPython<\/strong> \u53ef\u4ee5\u4f7f\u7528 <strong><strong>help<\/strong><\/strong> \u51fd\u6570\u83b7\u5f97\u5e2e\u52a9\u3002<\/p>\n<p>\u4e0b\u9762\u6211\u4eec\u5c31\u6765\u5b9e\u73b0\u4e00\u4e2a<strong><strong>LED\u95ea\u70c1\u7684\u7a0b\u5e8f<\/strong><\/strong> : \u6bcf\u79d2\u5feb\u901f\u95ea\u70c1\u4e00\u6b21\uff1a<\/p>\n<ol>\n<li><strong>\u5bfc\u5165\u65f6\u95f4\u6a21\u5757\uff1b<\/strong><\/li>\n<li><strong>\u5bfc\u5165\u63a7\u5236GPIO \u7684\u6a21\u5757\uff1b<\/strong><\/li>\n<li><strong>\u7ba1\u811a\u5206\u914d\uff0c\u5e76\u5b9a\u4e49GPIO\u5de5\u4f5c\u6a21\u5f0f\uff1b<\/strong><\/li>\n<li><strong>\u7f16\u5199\u95ea\u70c1\u903b\u8f91\uff1b<\/strong><\/li>\n<\/ol>\n<p><img src=\"https:\/\/blog.osvlabs.com\/wp-content\/uploads\/2022\/11\/ledflash.png\" alt=\"LED\u95ea\u70c1\u4ee3\u7801\" \/><\/p>\n<h2>\u7ed3\u5c3e<\/h2>\n<p><strong><strong>ESP32\u7269\u8054\u7f51\u5f00\u53d1\u7684\u7b80\u5355\u6d41\u7a0b\u5c31\u5230\u5206\u4eab\u5230\u8fd9\u91cc\u4e86\uff0c\u6b22\u8fce\u7ea0\u6b63\u9519\u8bef\u548c\u5206\u4eab\u3002<\/strong><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>ESP32\u6a21\u7ec4\u5e94\u7528\u5206\u4eab \u80cc\u666f \u7269\u8054\u7f51\u53ef\u4ee5\u5b9e\u73b0\u4e07\u7269\u4e92\u8054\uff0c\u7ed9\u6211\u4eec\u7684\u65e5\u5e38\u751f\u6d3b\u5e26\u6765\u4fbf\u6377\u3002\u4eca\u5929\u5206\u4eab\u7684\u662f\u4e50\u946b\u7684ESP32\u6a21\u7ec4\uff0c\u8be5\u6a21\u7ec4\u96c6\u6210WiFi2.4G\u548cBLE5.0\uff0c\u53ef\u4ee5\u5feb\u901f\u7684\u5f00\u53d1\u7269\u8054\u7f51\u5c0f\u9879\u76ee\u3002 ESP32\u652f\u6301\u2026<\/p>\n","protected":false},"author":13,"featured_media":516,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[9],"tags":[10,11],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":5}},"_links":{"self":[{"href":"https:\/\/blog.osvlabs.com\/index.php?rest_route=\/wp\/v2\/posts\/509"}],"collection":[{"href":"https:\/\/blog.osvlabs.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.osvlabs.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.osvlabs.com\/index.php?rest_route=\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.osvlabs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=509"}],"version-history":[{"count":5,"href":"https:\/\/blog.osvlabs.com\/index.php?rest_route=\/wp\/v2\/posts\/509\/revisions"}],"predecessor-version":[{"id":515,"href":"https:\/\/blog.osvlabs.com\/index.php?rest_route=\/wp\/v2\/posts\/509\/revisions\/515"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.osvlabs.com\/index.php?rest_route=\/wp\/v2\/media\/516"}],"wp:attachment":[{"href":"https:\/\/blog.osvlabs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=509"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.osvlabs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=509"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.osvlabs.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=509"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}