{"id":20067,"date":"2023-08-24T16:31:22","date_gmt":"2023-08-24T08:31:22","guid":{"rendered":"https:\/\/www.circuspi.com\/?p=20067"},"modified":"2023-09-20T09:58:16","modified_gmt":"2023-09-20T01:58:16","slug":"esp32-arduino-ide-2-x","status":"publish","type":"post","link":"https:\/\/www.circuspi.com\/index.php\/2023\/08\/24\/esp32-arduino-ide-2-x\/","title":{"rendered":"ESP32 \u6559\u5b78\u7cfb\u5217(\u4e8c)\uff1a\u4f7f\u7528 Arduino IDE 2.x \u958b\u767c"},"content":{"rendered":"\n<p><style>\n\/* ###\u5be6\u9a57\u4e0b\u4e00\u5217### *\/\n\na:link {color:#0695e4\n;}    \/* \u8a2d\u5b9a\u5c1a\u672a\u9ede\u95b1\u904e\u7684\u9023\u7d50\u6a23\u5f0f *\/\na:visited {color:#0695e4\n;} \/* \u8a2d\u5b9a\u904e\u53bb\u66fe\u7d93\u95b1\u904e\u7684\u9023\u7d50 *\/\na:hover {color:#0695e4\n;}   \/* \u8a2d\u5b9a\u6ed1\u9f20\u6e38\u6a19\u6307\u5728\u9023\u7d50\u4f4d\u7f6e\u4e0a\u7684\u6a23\u5f0f *\/\na:active {color:#0000BB;}  \/* \u8a2d\u5b9a\u4e0a\u9ede\u64ca\u904e\u7684\u9023\u7d50\u6a23\u5f0f *\/\n<\/style><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1000\" height=\"526\" src=\"https:\/\/www.circuspi.com\/wp-content\/uploads\/2023\/08\/1000x526_1-1.jpg\" alt=\"ESP32 \u6559\u5b78\u7cfb\u5217(\u4e8c)\uff1a\u4f7f\u7528 Arduino IDE 2.x \u958b\u767c\" class=\"wp-image-20128\"\/><\/figure><\/div>\n\n\n<h2 class=\"wp-block-heading\">\u4e00\u3001\u524d\u8a00<\/h2>\n\n\n\n<p>\u8aaa\u5230<a rel=\"noreferrer noopener\" href=\"https:\/\/www.icshop.com.tw\/categories\/esp32\" target=\"_blank\"> ESP32<\/a> \u7684\u958b\u767c\u74b0\u5883\u81ea\u7136\u5f97\u63d0\u5230\u5bb6\u55bb\u6236\u66c9\u7684 <a rel=\"noreferrer noopener\" href=\"https:\/\/www.arduino.cc\/en\/software\" target=\"_blank\">Arduino IDE<\/a> \u5566\uff0c\u672c\u7bc7\u5c07\u8aaa\u660e\u5982\u4f55\u4f7f\u7528\u65b0\u7248\u7684 Arduino IDE \u5efa\u7acb ESP32 \u958b\u767c\u74b0\u5883\u3002<\/p>\n\n\n\n<p><strong>\u8a3b<\/strong>\uff1a\u7531\u65bcArduino2.1.1\u7248\u5c1a\u672a\u652f\u63f4\u7e41\u9ad4\u4e2d\u6587\uff0c\u6240\u4ee5\u672c\u6587\u4e2d\u7684\u90e8\u5206\u540d\u8a5e\u6703\u4ee5\u4e2d\u82f1\u5c0d\u7167\u65b9\u5f0f\u5448\u73fe\uff0c\u4ee5\u907f\u514d\u7528\u8a5e\u4e0a\u7684\u8aa4\u89e3\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e8c\u3001\u7c21\u4ecb<\/h2>\n\n\n\n<p>IDE \u7684\u5168\u540d\u662f Integrated Development Enviroment\uff0c\u4e2d\u6587\u7684\u7ffb\u8b6f\u53eb\u505a\u300c\u6574\u5408\u5f0f\u958b\u767c\u74b0\u5883\u300d\uff0c\u5b83\u5c07\u958b\u767c\u6642\u6703\u9700\u8981\u7528\u5230\u7684\u5de5\u5177\u6574\u5408\u5728\u4e00\u500b\u8edf\u9ad4\u88e1\u9762\uff0c\u76ee\u7684\u662f\u5e6b\u52a9\u6211\u5011\u5728\u958b\u767c\u6642\u63d0\u9ad8\u6548\u7387\uff0c\u800c\u5e38\u898b\u7684\u958b\u767c\u5de5\u5177\u50cf\u662f\u7de8\u8f2f\u5668\u3001\u7de8\u8b6f\u3001\u5075\u932f\u3001\u71d2\u9304\u7b49\u3002<\/p>\n\n\n\n<p>\u8edf\u9ad4\u9818\u57df\u7684\u958b\u767c\u74b0\u5883\u6709\u975e\u5e38\u591a\u7a2e\uff0c\u50cf\u662f\u5fae\u8edf\u7684 <a rel=\"noreferrer noopener\" href=\"https:\/\/visualstudio.microsoft.com\/zh-hant\/\" target=\"_blank\">Visual Studio<\/a> \u8207 Visual Studio Code\u3001<a rel=\"noreferrer noopener\" href=\"https:\/\/www.eclipse.org\/downloads\/\" target=\"_blank\">Eclipse<\/a>\u3001Atom\u3001PyCharm\u2026\u7b49\uff0c\u9019\u4e9b\u958b\u767c\u74b0\u5883\u80fd\u652f\u63f4\u5927\u90e8\u5206\u7684\u8a9e\u8a00\uff0c\u4e5f\u90fd\u7531\u4e0d\u540c\u7684\u516c\u53f8\u6216\u57fa\u91d1\u6703\u63a8\u51fa\u3002\u4f46\u662f\u4ee5\u5d4c\u5165\u5f0f\u9818\u57df\u4f86\u8aaa\uff0c\u56e0\u70ba\u5404\u5bb6\u6676\u7247\u7684\u8a2d\u8a08\u8207\u71d2\u9304\u65b9\u5f0f\u4e0d\u76e1\u76f8\u540c\uff0c\u56e0\u6b64\u901a\u5e38\u6703\u7531\u6676\u7247\u5ee0\u5546\u63d0\u4f9b\u5c08\u5c6c\u7684\u958b\u767c\u74b0\u5883\u3002\u77e5\u540d\u7684\u4f8b\u5b50\u5982\u7f8e\u570b\u5927\u5ee0 Microchip \u516c\u53f8\u63a8\u51fa\u7684 <a rel=\"noreferrer noopener\" href=\"https:\/\/www.microchip.com\/en-us\/tools-resources\/develop\/mplab-x-ide\" target=\"_blank\">MPLAB<\/a>\u3001\u610f\u6cd5\u534a\u5c0e\u9ad4\uff08ST\uff09\u516c\u53f8\u91dd\u5c0d STM32 \u5bb6\u65cf\u6676\u7247\u63a8\u51fa\u7684<a rel=\"noreferrer noopener\" href=\"https:\/\/www.st.com\/en\/development-tools\/stm32cubeide.html\" target=\"_blank\">STM32CubeIDE<\/a>\u3002\u53e6\u5916\u4e5f\u6709\u5c11\u90e8\u5206\u7684 IDE \u662f\u7531\u7b2c\u4e09\u65b9\u958b\u767c\uff0c\u76f8\u5bb9\u65bc\u7279\u5b9a\u985e\u578b\u7684\u6676\u7247\uff0c\u4f8b\u5982 Arm KEIL \u516c\u53f8\u63a8\u51fa\u7684 <a rel=\"noreferrer noopener\" href=\"https:\/\/developer.arm.com\/Tools%20and%20Software\/Keil%20MDK\" target=\"_blank\">Keil MDK<\/a> \u7cfb\u5217 IDE\uff0c\u4ee5\u53ca\u672c\u7bc7\u7684\u4e3b\u89d2\u2014 Arduino IDE\u3002<\/p>\n\n\n\n<p>\u4e8b\u5be6\u4e0a\uff0cESP32\u652f\u63f4\u591a\u7a2e\u958b\u767c\u65b9\u5f0f\u3002\u9664\u4e86\u5e38\u807d\u5230\u7684 Arduino IDE \u4ee5\u5916\uff0c\u539f\u5ee0\u6a02\u946b\u4e5f\u6709\u63a8\u51fa\u81ea\u5df1\u7684\u6574\u5408\u5f0f\u958b\u767c\u74b0\u5883 ESP-IDF\uff0c\u4f46\u662f\u76f8\u6bd4\u4e4b\u4e0b Arduino IDE \u66f4\u52a0\u7c21\u55ae\u3001\u76f4\u89ba\uff0c\u64cd\u4f5c\u5e7e\u6b21\u4e4b\u5f8c\u5c31\u80fd\u4e0a\u624b\uff0c\u4f7f\u7528\u8d77\u4f86\u4e5f\u76f8\u7576\u65b9\u4fbf\u3002<\/p>\n\n\n\n<p>\u53e6\u5916\uff0c\u76ee\u524d ESP32 \u5168\u7cfb\u5217\u591a\u6578\u6676\u7247\u90fd\u652f\u63f4\u4f7f\u7528 Arduino IDE \u8a9e\u8a00\u958b\u767c\uff0c\u6240\u4ee5\u7d9c\u5408\u4f86\u8aaa\uff0c\u4e0d\u8ad6\u662f\u5728\u5b89\u88dd\u3001\u64cd\u4f5c\u3001\u4ecb\u9762\u3001\u7a0b\u5f0f\u8a9e\u6cd5\u3001\u7bc4\u4f8b\u7a0b\u5f0f\u3001\u51fd\u5f0f\u5eab\u652f\u63f4\u3001\u7db2\u8def\u793e\u7fa4\u8cc7\u6e90\u7b49\u65b9\u9762\uff0cArduino IDE \u90fd\u662f\u76f8\u7576\u53cb\u5584\u4e14\u89aa\u6c11\u7684\u9078\u64c7\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote\">\n<p>\ud83d\udca1Tips<\/p>\n\n\n\n<p>\u5982\u679c\u60a8\u7fd2\u6163\u4f7f\u7528 Arduino \u7684\u6846\u67b6\u8207\u6838\u5fc3\u51fd\u5f0f\u5eab\u4f46\u662f\u60f3\u4f7f\u7528 Arduino IDE \u4ee5\u5916\u7684\u958b\u767c\u74b0\u5883\uff0c\u53ef\u4ee5\u53c3\u8003 VSCode + PlatformIO \u7684\u7d44\u5408<\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e09\u3001Arduino IDE 2.0 \u7684\u65b0\u529f\u80fd<\/h2>\n\n\n\n<p>\u65b0\u7248\u7684 Arduino IDE \u57fa\u65bc\u958b\u6e90\u6846\u67b6 Eclipse Theia \u4e26\u4e14\u4f7f\u7528\u4e86 Electron \u5efa\u69cb\u958b\u767c\u74b0\u5883\uff0c\u865f\u7a31\u6c92\u6709\u8207\u820a\u7248\u4f7f\u7528\u5230\u76f8\u540c\u7684\u7a0b\u5f0f\u78bc\u3002\u5728\u6574\u5408\u65b0\u529f\u80fd\u5f8c\u8b8a\u5f97\u66f4\u5f37\u5927\uff0c\u4e5f\u6709\u66f4\u597d\u7684\u4f7f\u7528\u9ad4\u9a57\u3002<\/p>\n\n\n\n<p>\u512a\u9ede\uff1a<\/p>\n\n\n\n<ul>\n<li>\u754c\u9762\u6539\u7248\u5f8c\uff0c\u756b\u9762\u4ecd\u7136\u6e05\u6670\u7c21\u6f54<\/li>\n\n\n\n<li>\u652f\u63f4\u6df1\u8272\u4e3b\u984c\uff08Dark Theme\uff09<\/li>\n\n\n\n<li>\u65b0\u589e\u81ea\u52d5\u586b\u5beb\u7a0b\u5f0f\u78bc\uff08autocompletion\uff09\u529f\u80fd<\/li>\n\n\n\n<li>\u65b0\u589e\u5075\u932f\u5668\uff08debugger\uff09\u529f\u80fd<\/li>\n\n\n\n<li>\u652f\u63f4\u8207 Arduino Cloud \u540c\u6b65\u8349\u7a3f\u78bc\uff08sketches\uff09<\/li>\n\n\n\n<li>\u5c07\u5e38\u7528\u529f\u80fd\u6574\u5408\u5230\u4e3b\u756b\u9762\u4e0a\uff0c\u50cf\u662f\uff1a\u8349\u7a3f\u78bc\u7c3f\uff08Sketchbook\uff09\u3001\u958b\u767c\u677f\u7ba1\u7406\u54e1\uff08Board Manager\uff09\u3001\u51fd\u5f0f\u5eab\u7ba1\u7406\u54e1\uff08Library manager\uff09\u3001\u6587\u5b57\u641c\u5c0b\u529f\u80fd\uff08Search\uff09\u2026\u7b49<\/li>\n\n\n\n<li>\u6539\u5584\u820a\u7248\u5e8f\u5217\u57e0\u76e3\u63a7\u8996\u7a97\uff08Serial Monitor\uff09\u4e00\u6b21\u53ea\u80fd\u9023\u63a5\u4e00\u500b\u5e8f\u5217\u57e0\uff08Serial port\uff09\u7684\u554f\u984c<\/li>\n<\/ul>\n\n\n\n<p>\u7f3a\u9ede\uff1a<\/p>\n\n\n\n<ul>\n<li>\u521d\u6b21\u555f\u52d5\u7684\u901f\u5ea6\u5f88\u6162<\/li>\n\n\n\n<li>\u76ee\u524d\uff082.1.1\u7248\uff09\u53ea\u652f\u63f4\u7c21\u9ad4\u4e2d\u6587\u4ecb\u9762<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.circuspi.com\/wp-content\/uploads\/2023\/08\/image-7.png\" alt=\"ESP32 \u6559\u5b78\u7cfb\u5217(\u4e8c)\uff1a\u4f7f\u7528 Arduino IDE 2.x \u958b\u767c\" class=\"wp-image-20069\" width=\"960\" height=\"540\"\/><\/figure><\/div>\n\n\n<h2 class=\"wp-block-heading\">\u56db\u3001\u5148\u5099\u689d\u4ef6\uff1a\u5b89\u88dd Arduino IDE 2.0<\/h2>\n\n\n\n<p>\u5982\u679c\u60a8\u7684\u96fb\u8166\u5df2\u7d93\u5b89\u88dd\u904e Arduino IDE\uff0c\u53ef\u4ee5\u76f4\u63a5\u8df3\u5230\u4e0b\u4e00\u500b\u6bb5\u843d\u3002(\u309d\u2200\uff65)\u2312\u2606<\/p>\n\n\n\n<p>\u9996\u5148\uff0c\u5230Arduino\u5b98\u7db2\u4e0b\u8f09\u6700\u65b0\u7248\u672c\u7684IDE\uff08<a href=\"https:\/\/www.arduino.cc\/en\/software\" target=\"_blank\" rel=\"noreferrer noopener\">\u9ede\u6211\u4e0b\u8f09<\/a>\uff09\uff0c\u4e26\u4f9d\u7167\u96fb\u8166\u7684\u4f5c\u696d\u7cfb\u7d71\u9078\u64c7\u8981\u4e0b\u8f09\u7684\u6a94\u6848\u3002\u4ee5\u7b46\u8005\u64b0\u6587\u7576\u4e0b\u70ba\u4f8b\uff0c\u6700\u65b0\u7684\u7248\u672c\u662f2.1.1\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.circuspi.com\/wp-content\/uploads\/2023\/08\/image-8.png\" alt=\"ESP32 \u6559\u5b78\u7cfb\u5217(\u4e8c)\uff1a\u4f7f\u7528 Arduino IDE 2.x \u958b\u767c\" class=\"wp-image-20070\" width=\"896\" height=\"530\"\/><\/figure><\/div>\n\n\n<p>\u4e0b\u8f09\u5f8c\u57f7\u884c\u7a0b\u5f0f\u4e26\u7167\u8457\u6d41\u7a0b\u5b89\u88dd\uff0c\u6700\u5f8c\u6703\u51fa\u73fe\u4ee5\u4e0b\u756b\u9762<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.circuspi.com\/wp-content\/uploads\/2023\/08\/image-9.png\" alt=\"ESP32 \u6559\u5b78\u7cfb\u5217(\u4e8c)\uff1a\u4f7f\u7528 Arduino IDE 2.x \u958b\u767c\" class=\"wp-image-20071\" width=\"530\" height=\"383\"\/><\/figure><\/div>\n\n\n<p>\u958b\u555f\u8edf\u9ad4\u4ee5\u5f8c\uff0c\u770b\u8d77\u4f86\u6c92\u6709\u53cd\u61c9\u662f\u6b63\u5e38\u7684\u3002\u6839\u64da\u7d93\u9a57\uff0c\u96fb\u8166\u5728\u7b2c\u4e00\u6b21\u958b\u555f\u7684 IDE \u6642\uff0c\u6703\u9700\u8981\u82b1\u6bd4\u8f03\u591a\u6642\u9593\u8f09\u5165\uff0c\u4f46\u662f\u4e4b\u5f8c\u518d\u958b\u555f\u7684\u901f\u5ea6\u6703\u660e\u986f\u8b8a\u5feb\u3002<\/p>\n\n\n\n<p>\u6210\u529f\u958b\u555f\u5f8c\uff0c\u6703\u770b\u5230\u5982\u4e0b\u756b\u9762\u3002\u4e0d\u904e\uff0c\u6211\u5011\u9084\u9700\u8981\u52a0\u5165ESP32\u958b\u767c\u677f\uff0c\u624d\u80fd\u5728Arduino IDE\u4e0a\u958b\u767c\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1068\" height=\"614\" src=\"https:\/\/www.circuspi.com\/wp-content\/uploads\/2023\/08\/lADPM3yRoRLvEpfNAmbNBCw_1068_614.jpg\" alt=\"ESP32 \u6559\u5b78\u7cfb\u5217(\u4e8c)\uff1a\u4f7f\u7528 Arduino IDE 2.x \u958b\u767c\" class=\"wp-image-20087\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e94\u3001\u52a0\u5165 ESP32 \u958b\u767c\u677f<\/h2>\n\n\n\n<p>Arduino IDE \u88e1\u9762\u9810\u8a2d\u53ea\u5305\u542b <a href=\"https:\/\/www.icshop.com.tw\/categories\/esp32\" target=\"_blank\" rel=\"noreferrer noopener\">Arduino<\/a> \u5bb6\u65cf\u7684\u958b\u767c\u677f\uff0c\u5982\u679c\u8981\u4f7f\u7528\u5176\u4ed6\u7684\u958b\u767c\u677f\uff0c\u5fc5\u9808\u5728\u958b\u767c\u677f\u7ba1\u7406\u54e1\u5167\u65b0\u589e\u3002<\/p>\n\n\n\n<p><strong>\u6b65\u9a5f\uff1a<\/strong><\/p>\n\n\n\n<p>1. \u5728 Arduino IDE 2.0 \u5de6\u4e0a\u65b9\u627e\u5230 File &gt; Preferences<\/p>\n\n\n\n<p>2. \u8907\u88fd\u4e0b\u65b9\u6587\u5b57\u4e26\u8cbc\u5230 <strong>Additional Boards Manager<\/strong>&nbsp;<strong>URLs<\/strong> \u7684\u6b04\u4f4d\u4e2d<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>https:\/\/espressif.github.io\/arduino-esp32\/package_esp32_index.json<\/strong><\/code><\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.circuspi.com\/wp-content\/uploads\/2023\/08\/image-11.png\" alt=\"ESP32 \u6559\u5b78\u7cfb\u5217(\u4e8c)\uff1a\u4f7f\u7528 Arduino IDE 2.x \u958b\u767c\" class=\"wp-image-20073\" width=\"791\" height=\"588\"\/><\/figure><\/div>\n\n\n<blockquote class=\"wp-block-quote is-style-plain\">\n<p>\ud83d\udca1Tips<\/p>\n<cite>\u5982\u679c Additional boards manager \u5b58\u5728\u4e00\u500b\u4ee5\u4e0a\u7684 URL\uff0c\u5728\u6bcf\u4e00\u6bb5\u7684\u7d50\u5c3e\u8655\u8981\u8a18\u5f97\u7528\u9017\u865f\u9694\u958b\u3002<\/cite><\/blockquote>\n\n\n\n<p>3. \u9ede\u9078\u756b\u9762\u5de6\u5074\u7b2c\u4e8c\u9805\u7684\u958b\u767c\u677f\u7ba1\u7406\u54e1\u5716\u793a\uff0c\u4e26\u5728\u641c\u5c0b\u6846\u88e1\u8f38\u5165 esp32\uff0c\u9ede\u64ca\u5b89\u88dd\u3002 \u5982\u679c\u5728\u4e0a\u500b\u6b65\u9a5f\u6709\u6210\u529f\u52a0\u5165\u6b63\u78ba\u7684\u7db2\u5740\uff0c\u5c31\u6703\u51fa\u73fe\u641c\u5c0b\u7d50\u679c\uff1b\u5047\u5982\u641c\u5c0b\u4e0d\u5230\u7d50\u679c\uff0c\u8acb\u6aa2\u67e5\u4e0a\u500b\u6b65\u9a5f\u64cd\u4f5c\u662f\u5426\u6b63\u78ba\uff0c\u4ee5\u53ca\u7db2\u8def\u9023\u7dda\u662f\u5426\u6b63\u5e38\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.circuspi.com\/wp-content\/uploads\/2023\/08\/image-12.png\" alt=\"ESP32 \u6559\u5b78\u7cfb\u5217(\u4e8c)\uff1a\u4f7f\u7528 Arduino IDE 2.x \u958b\u767c\" class=\"wp-image-20074\" width=\"807\" height=\"600\"\/><\/figure><\/div>\n\n\n<p>\u5b89\u88dd\u5b8c\u6210\u5f8c\uff0c\u5de6\u5074\u9078\u55ae\u8207\u4e0b\u65b9 Output \u6b04\u4f4d\u6703\u986f\u793a <strong>2.0.9 installed <\/strong>\u7684\u6587\u5b57\u3002\uff08\u7248\u672c\u865f\u78bc\u6703\u96a8\u8457\u66f4\u65b0\u6642\u9593\u800c\u6709\u6240\u5dee\u7570\uff09<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.circuspi.com\/wp-content\/uploads\/2023\/08\/image-13.png\" alt=\"ESP32 \u6559\u5b78\u7cfb\u5217(\u4e8c)\uff1a\u4f7f\u7528 Arduino IDE 2.x \u958b\u767c\" class=\"wp-image-20075\" width=\"815\" height=\"585\"\/><\/figure><\/div>\n\n\n<h2 class=\"wp-block-heading\">\u516d\u3001\u71d2\u9304\u6e2c\u8a66\u7a0b\u5f0f<\/h2>\n\n\n\n<p>\u5b89\u88dd\u5b8c\u958b\u767c\u677f\u5f8c\uff0c\u6211\u5011\u73fe\u5728\u4f86\u8a66\u8457\u71d2\u9304\u4e00\u500b\u7c21\u55ae\u7684 LED \u9583\u720d\u7bc4\u4f8b\u7a0b\u5f0f\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u6b65\u9a5f\u8aaa\u660e<\/h3>\n\n\n\n<p>ESP32 \u958b\u767c\u677f\u4e0a\u6709\u4e00\u9846\u5167\u5efa\u7684 LED \u71c8\uff0c\u9019\u9846 LED \u9023\u63a5\u5230\u958b\u767c\u677f GPIO2 \u8173\u4f4d\u3002<\/p>\n\n\n\n<p>1. \u9996\u5148\uff0c\u8907\u88fd\u4e0b\u65b9\u7684\u7a0b\u5f0f\u78bc\u5230 Arduino IDE \u4e2d\uff0c\u9019\u500b\u7bc4\u4f8b\u7a0b\u5f0f\u6703\u8b93 LED \u4ee5\u6bcf 0.5 \u79d2\u7684\u901f\u5ea6\u9583\u720d\u3002<\/p>\n\n\n\n<div style=\"overflow: auto; height: 480px; background-color: #0000;\"><script src=\"https:\/\/gist.github.com\/iCShop-Sophie\/fd2233ea3632852451d6b65f4eaa1e8c.js\"><\/script>\n<\/div>\n\n\n\n<p>2. \u9ede\u64ca\u5728\u4e3b\u756b\u9762\u4e0a\u65b9\u7684 Select Board\uff0c\u9078\u64c7 Select other board and port<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.circuspi.com\/wp-content\/uploads\/2023\/08\/image-14.png\" alt=\"ESP32 \u6559\u5b78\u7cfb\u5217(\u4e8c)\uff1a\u4f7f\u7528 Arduino IDE 2.x \u958b\u767c\" class=\"wp-image-20076\" width=\"840\" height=\"605\"\/><\/figure><\/div>\n\n\n<p>3. \u5728\u958b\u767c\u677f\u5217\u8868\u4e2d\u641c\u5c0b NodeMCU-32S<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.circuspi.com\/wp-content\/uploads\/2023\/08\/image-15.png\" alt=\"ESP32 \u6559\u5b78\u7cfb\u5217(\u4e8c)\uff1a\u4f7f\u7528 Arduino IDE 2.x \u958b\u767c\" class=\"wp-image-20077\" width=\"640\" height=\"460\"\/><\/figure><\/div>\n\n\n<p>4. \u5c07\u958b\u767c\u677f\u9023\u63a5\u5230\u96fb\u8166\u4e0a\uff0c\u9078\u64c7\u9023\u63a5\u57e0\uff08port\uff09<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.circuspi.com\/wp-content\/uploads\/2023\/08\/image-16.png\" alt=\"ESP32 \u6559\u5b78\u7cfb\u5217(\u4e8c)\uff1a\u4f7f\u7528 Arduino IDE 2.x \u958b\u767c\" class=\"wp-image-20078\" width=\"840\" height=\"605\"\/><\/figure><\/div>\n\n\n<p>5. \u9ede\u64ca\u4e0a\u50b3\uff08Upload\uff09\u6309\u9215\u71d2\u9304<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.circuspi.com\/wp-content\/uploads\/2023\/08\/image-17.png\" alt=\"ESP32 \u6559\u5b78\u7cfb\u5217(\u4e8c)\uff1a\u4f7f\u7528 Arduino IDE 2.x \u958b\u767c\" class=\"wp-image-20079\" width=\"840\" height=\"605\"\/><\/figure><\/div>\n\n\n<p>6. \u57f7\u884c\u7d50\u679c<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.circuspi.com\/wp-content\/uploads\/2023\/08\/IMB_VRtM9W-1.gif\" alt=\"ESP32 \u6559\u5b78\u7cfb\u5217(\u4e8c)\uff1a\u4f7f\u7528 Arduino IDE 2.x \u958b\u767c\" class=\"wp-image-20080\" width=\"427\" height=\"569\"\/><\/figure><\/div>\n\n\n<p>\u7576\u7136\uff0c\u60a8\u4e5f\u53ef\u4ee5\u7528\u5176\u4ed6\u7684\u8173\u4f4d\u6e2c\u8a66\uff0c\u53ea\u8981\u628a <code><strong>#define LED 2<\/strong><\/code> \u6539\u6210\u5176\u4ed6\u8173\u4f4d\uff0c\u53ea\u662f\u9019\u6a23\u4e00\u4f86\uff0c\u5c31\u8981\u53e6\u5916\u9023\u63a5 LED \u624d\u80fd\u6e2c\u8a66\u3002\u6709\u95dc GPIO \u7684\u4f7f\u7528\uff0c\u6211\u5011\u6703\u5728\u4e0b\u4e00\u7bc7\u4e2d\u8aaa\u660e\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e03\u3001\u5e38\u898b\u554f\u984c\u6392\u9664<\/h2>\n\n\n\n<p>\u5982\u679c\u60a8\u7684\u5728\u71d2\u9304\u904e\u7a0b\u4e2d\u9047\u5230\u554f\u984c\uff0c\u53ef\u4ee5\u53c3\u8003\u6b64\u8655\u7684\u8aaa\u660e\u3002<\/p>\n\n\n\n<p>Q1: \u958b\u767c\u677f\u9023\u63a5\u96fb\u8166\u5f8c\uff0cIDE \u537b\u986f\u793a\u627e\u4e0d\u5230\u53ef\u7528\u9023\u63a5\u57e0<\/p>\n\n\n\n<p>A1: \u53ef\u4ee5\u5148\u78ba\u8a8d\u958b\u767c\u677f\u7684\u71d2\u9304\u6676\u7247\u662f\u54ea\u4e00\u7a2e\uff0c\u4e26\u6aa2\u67e5\u96fb\u8166\u662f\u5426\u6709\u6210\u529f\u5b89\u88dd\u9a45\u52d5\u7a0b\u5f0f\u3002\u82e5\u60a8\u9700\u8981\u4e0b\u8f09\u9a45\u52d5\u7a0b\u5f0f\uff0c\u53ef\u4ee5\u9ede\u64ca\u4e0b\u9762\u7684\u9023\u7d50\u5230\u5b98\u7db2\u4e0b\u8f09\uff1a<\/p>\n\n\n\n<ul>\n<li><a href=\"https:\/\/www.wch-ic.com\/downloads\/CH341SER_ZIP.html\" target=\"_blank\" rel=\"noreferrer noopener\">CH340\u8f09\u9ede<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.silabs.com\/developers\/usb-to-uart-bridge-vcp-drivers?tab=downloads\" target=\"_blank\" rel=\"noreferrer noopener\">CP2102\u8f09\u9ede<\/a><\/li>\n<\/ul>\n\n\n\n<p>Q2: \u96fb\u8166\u53ef\u4ee5\u9023\u63a5\u5230\u958b\u767c\u677f\uff0c\u4e5f\u80fd\u9078\u64c7\u5e8f\u5217\u57e0\uff0c\u4f46\u662f\u5728\u4e0a\u50b3\u7a0b\u5f0f\u968e\u6bb5\uff0c\u537b\u51fa\u73fe Failed uploading \u7684\u932f\u8aa4\u8a0a\u606f\uff08\u5982\u5716\uff09<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.circuspi.com\/wp-content\/uploads\/2023\/08\/image-18.png\" alt=\"ESP32 \u6559\u5b78\u7cfb\u5217(\u4e8c)\uff1a\u4f7f\u7528 Arduino IDE 2.x \u958b\u767c\" class=\"wp-image-20081\" width=\"730\" height=\"354\"\/><\/figure><\/div>\n\n\n<p>A2: \u6703\u51fa\u73fe\u9019\u500b\u539f\u56e0\u662f\u56e0\u70ba\u6709\u4e9b\u958b\u767c\u677f\u6c92\u6709\u81ea\u52d5\u4e0b\u8f09\u529f\u80fd\uff0c\u9700\u8981\u624b\u52d5\u5207\u63db\u6210\u4e0b\u8f09\u6a21\u5f0f\uff0c\u624d\u80fd\u5c07\u7a0b\u5f0f\u78bc\u71d2\u9304\u5230\u6676\u7247\u4e0a\u3002<\/p>\n\n\n\n<p>\u5177\u9ad4\u64cd\u4f5c\u6b65\u9a5f\u5982\u4e0b\uff1a<\/p>\n\n\n\n<ol>\n<li>\u5728 IDE \u9ede\u64ca\u4e0a\u50b3\u7a0b\u5f0f<\/li>\n\n\n\n<li>\u7576 Output \u6b04\u4f4d\u51fa\u73fe Connect\u2026\u6587\u5b57\u6642\uff0c\u9577\u6309\u958b\u767c\u7248\u4e0a\u9762\u7684 IO0 \u6309\u9215\uff08\u90e8\u5206\u958b\u767c\u677f\u6703\u6a19\u793a\u6210 BOOT\uff09<\/li>\n\n\n\n<li>\u7b49\u5230\u51fa\u73fe Writing at 0x000\u2026\u6587\u5b57\u6642\uff0c\u518d\u9b06\u958b\u6309\u9215<\/li>\n\n\n\n<li>\u7b49\u5f85\u4e0a\u50b3\u5b8c\u6210<\/li>\n<\/ol>\n\n\n\n<p>\u516b\u3001\u9032\u968e\u529f\u80fd\uff1a\u958b\u555f\u81ea\u52d5\u586b\u5165\u7a0b\u5f0f\u78bc\u529f\u80fd<\/p>\n\n\n\n<p>\u5728\u504f\u597d\u8a2d\u5b9a\u4e2d\u958b\u555f\u81ea\u52d5\u586b\u5165\u529f\u80fd\uff0c\u52fe\u9078\u4e26\u6309\u4e0b OK \u78ba\u8a8d\u5f8c\uff0c\u5c31\u53ef\u4ee5\u56de\u5230\u7de8\u8f2f\u756b\u9762\u4e86\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.circuspi.com\/wp-content\/uploads\/2023\/08\/image-19.png\" alt=\"ESP32 \u6559\u5b78\u7cfb\u5217(\u4e8c)\uff1a\u4f7f\u7528 Arduino IDE 2.x \u958b\u767c\" class=\"wp-image-20082\" width=\"770\" height=\"465\"\/><\/figure><\/div>\n\n\n<p>\u5be6\u969b\u8a66\u8a66\u770b\u6548\u679c\uff1a<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.circuspi.com\/wp-content\/uploads\/2023\/08\/auto.gif\" alt=\"ESP32 \u6559\u5b78\u7cfb\u5217(\u4e8c)\uff1a\u4f7f\u7528 Arduino IDE 2.x \u958b\u767c\" class=\"wp-image-20083\" width=\"482\" height=\"371\"\/><figcaption class=\"wp-element-caption\">\u81ea\u52d5\u586b\u5165\u529f\u80fd<\/figcaption><\/figure><\/div>\n\n\n<p>\u65b0\u7248\u7de8\u8f2f\u5668\u9084\u52a0\u5165\u4e86\u539f\u578b\u8aaa\u660e\u529f\u80fd\uff0c\u53ea\u8981\u5c07\u6ed1\u9f20\u6e38\u6a19\u505c\u7559\u5728\u95dc\u9375\u5b57\u4e0a\u5c31\u80fd\u770b\u5230\u76f8\u95dc\u7684\u8a0a\u606f\u3002<\/p>\n\n\n\n<p>\u53e6\u4e00\u500b\u5be6\u7528\u7684\u529f\u80fd\u662f\u9023\u7d50\u53c3\u7167\u529f\u80fd\uff0c\u6309\u4e0b Ctrl+ \u9ede\u64ca\u95dc\u9375\u5b57\u5f8c\u5c31\u80fd\u9023\u7d50\u5230\u539f\u59cb\u5ba3\u544a\u7684\u6a94\u6848\u4e2d\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.circuspi.com\/wp-content\/uploads\/2023\/08\/hint.gif\" alt=\"ESP32 \u6559\u5b78\u7cfb\u5217(\u4e8c)\uff1a\u4f7f\u7528 Arduino IDE 2.x \u958b\u767c\" class=\"wp-image-20084\" width=\"498\" height=\"360\"\/><figcaption class=\"wp-element-caption\">\u539f\u578b\u8aaa\u660e\u529f\u80fd<\/figcaption><\/figure><\/div>\n\n\n<p>\u81ea\u52d5\u586b\u5165\u3001\u539f\u578b\u8aaa\u660e\u548c\u9023\u7d50\u53c3\u7167\u90fd\u662f\u5728\u958b\u767c\u4e0a\u5f88\u5e38\u898b\u7684\u529f\u80fd\uff0c\u53e6\u5916\u5728\u5be6\u6e2c\u5f8c\u767c\u73fe\uff0c\u81ea\u52d5\u586b\u5165\u529f\u80fd\u4e0d\u8ad6\u5927\u5c0f\u5beb\u90fd\u6703\u5e6b\u5fd9\u6bd4\u5c0d\uff0c\u5c31\u7b97\u5c11\u6253\u4e00\u5169\u500b\u5b57\u4e5f\u4e00\u6a23\u6703\u6709\u63d0\u793a\uff0c\u76f8\u8f03\u65bc\u820a\u7248\u7de8\u8f2f\u5668\u4f86\u8aaa\u662f\u76f8\u7576\u5927\u7684\u9032\u6b65\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u516b\u3001\u5c0f\u7d50<\/h2>\n\n\n\n<p>Arduino IDE \u5728\u6539\u7248\u4ee5\u5f8c\u4e00\u6a23\u7dad\u6301\u4e86\u8de8\u5e73\u53f0\u7684\u512a\u9ede\u3001\u7c21\u7d04\u4e14\u4ecd\u7136\u76f4\u89ba\u7684\u64cd\u4f5c\u4ecb\u9762\uff0c\u8b93\u4f7f\u7528\u8005\u5728\u4e0d\u540c\u5e73\u53f0\u4e0a\u80fd\u64c1\u6709\u4e00\u81f4\u7684\u64cd\u4f5c\u9ad4\u9a57\uff0c\u4e26\u6574\u5408\u4e86\u66f4\u591a\u820a\u7248\u6c92\u6709\uff0c\u4f46\u662f\u5c0d\u7a0b\u5f0f\u958b\u767c\u4f86\u8aaa\u76f8\u7576\u5be6\u7528\u7684\u529f\u80fd\uff1a\u50cf\u662f\u5728\u958b\u767c\u74b0\u5883\u5167\u5efa\u9664\u932f\u5de5\u5177\u3001\u81ea\u52d5\u586b\u5165\u7a0b\u5f0f\u78bc\uff0c\u4e5f\u5728\u9019\u6b21\u7684\u6539\u7248\u4e2d\u65b0\u589e\u6df1\u8272\u4e3b\u984c\uff0c\u8b93\u4f7f\u7528\u8005\u53ef\u4ee5\u5728\u539f\u751f\u7684\u74b0\u5883\u4f7f\u7528\u6df1\u8272\u7684\u80cc\u666f\u548c\u4ecb\u9762\u9032\u884c\u958b\u767c\uff0c\u7b46\u8005\u8a8d\u70ba\uff0c\u8a31\u591a\u5728\u820a\u7248 IDE \u4e2d\u611f\u53d7\u5230\u7684\u7f3a\u9ede\uff0c\u65b0\u7248\u90fd\u6709\u505a\u51fa\u6539\u5584\uff0c\u96d6\u7136\u9084\u662f\u6709\u4e00\u4e9b\u7f3a\u9ede\uff0c\u4f46\u6574\u9ad4\u800c\u8a00\u4ecd\u7136\u662f\u4e00\u6b21\u6709\u611f\u7684\u5347\u7d1a\u3002<\/p>\n\n\n\n<p>\u7531\u65bc ESP32 \u80fd\u76f8\u5bb9\u65bc\u5927\u90e8\u5206\u7684 Arduino Framework\uff0c\u52a0\u4e0a Arduino IDE \u7684\u64cd\u4f5c\u4ecb\u9762\u76f4\u89ba\u3001\u5b89\u88dd\u904e\u7a0b\u7c21\u55ae\uff0c\u4e5f\u6709\u8c50\u5bcc\u7684\u7db2\u8def\u8cc7\u6e90\u53ef\u4ee5\u63a2\u7d22\uff0c\u5c0d\u65bc\u521d\u5b78\u8005\u6216\u662f\u6559\u5b78\u4f7f\u7528\u6bd4\u8f03\u65b9\u4fbf\u3002\u9664\u975e\u5c08\u6848\u6709\u7279\u6b8a\u7684\u958b\u767c\u9700\u6c42\uff0c\u5426\u5247 Arduino IDE \u4ecd\u7136\u662f\u958b\u767c ESP32 \u6700\u65b9\u4fbf\u7684\u9078\u64c7\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8aaa\u5230 ESP32 \u7684\u958b\u767c\u74b0\u5883\u81ea\u7136\u5f97\u63d0\u5230\u5bb6\u55bb\u6236\u66c9\u7684 Arduino IDE \u5566\uff0c\u672c\u7bc7\u5c07\u8aaa\u660e\u5982\u4f55\u4f7f\u7528\u65b0\u7248\u7684 Arduino IDE \u5efa\u7acb ESP32 \u958b\u767c\u74b0\u5883\u3002<\/p>\n","protected":false},"author":1,"featured_media":20129,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[235,238],"tags":[],"table_tags":[],"_links":{"self":[{"href":"https:\/\/www.circuspi.com\/index.php\/wp-json\/wp\/v2\/posts\/20067"}],"collection":[{"href":"https:\/\/www.circuspi.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.circuspi.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.circuspi.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.circuspi.com\/index.php\/wp-json\/wp\/v2\/comments?post=20067"}],"version-history":[{"count":11,"href":"https:\/\/www.circuspi.com\/index.php\/wp-json\/wp\/v2\/posts\/20067\/revisions"}],"predecessor-version":[{"id":20428,"href":"https:\/\/www.circuspi.com\/index.php\/wp-json\/wp\/v2\/posts\/20067\/revisions\/20428"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.circuspi.com\/index.php\/wp-json\/wp\/v2\/media\/20129"}],"wp:attachment":[{"href":"https:\/\/www.circuspi.com\/index.php\/wp-json\/wp\/v2\/media?parent=20067"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.circuspi.com\/index.php\/wp-json\/wp\/v2\/categories?post=20067"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.circuspi.com\/index.php\/wp-json\/wp\/v2\/tags?post=20067"},{"taxonomy":"table_tags","embeddable":true,"href":"https:\/\/www.circuspi.com\/index.php\/wp-json\/wp\/v2\/table_tags?post=20067"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}