{"id":20602,"date":"2025-07-05T21:34:06","date_gmt":"2025-07-05T13:34:06","guid":{"rendered":"https:\/\/blog.iyatt.com\/?p=20602"},"modified":"2025-08-23T12:31:25","modified_gmt":"2025-08-23T04:31:25","slug":"%e5%b7%a5%e5%85%b7%ef%bc%9a%e7%94%a8-vscode-%e5%bc%80%e5%8f%91-arduino-%e7%a8%8b%e5%ba%8f%e3%80%90arduino-maker-workshop%e3%80%91","status":"publish","type":"post","link":"https:\/\/blog.iyatt.com\/?p=20602","title":{"rendered":"\u5de5\u5177\u63a8\u8350\uff1a\u7528 VScode \u5f00\u53d1 Arduino \u7a0b\u5e8f\u3010Arduino Maker Workshop &#038; PlatformIO\u3011"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 ez-toc-wrap-center counter-hierarchy ez-toc-counter ez-toc-light-blue ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title ez-toc-toggle\" style=\"cursor:pointer\">\u76ee\u5f55<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/blog.iyatt.com\/?p=20602\/#%E6%96%B9%E6%A1%88%E4%B8%80%EF%BC%9AArduino_Maker_Workshop\" >\u65b9\u6848\u4e00\uff1aArduino Maker Workshop<\/a><ul class='ez-toc-list-level-2' ><li class='ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/blog.iyatt.com\/?p=20602\/#%E5%AE%89%E8%A3%85\" >\u5b89\u88c5<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/blog.iyatt.com\/?p=20602\/#%E4%BD%BF%E7%94%A8\" >\u4f7f\u7528<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/blog.iyatt.com\/?p=20602\/#%E6%96%B9%E6%A1%88%E4%BA%8C%EF%BC%9APlatformIO\" >\u65b9\u6848\u4e8c\uff1aPlatformIO<\/a><ul class='ez-toc-list-level-2' ><li class='ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/blog.iyatt.com\/?p=20602\/#%E5%AE%89%E8%A3%85-2\" >\u5b89\u88c5<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/blog.iyatt.com\/?p=20602\/#%E4%BD%BF%E7%94%A8-2\" >\u4f7f\u7528<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/blog.iyatt.com\/?p=20602\/#%E4%BD%BF%E7%94%A8_Arduino_%E5%BA%93\" >\u4f7f\u7528 Arduino \u5e93<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/blog.iyatt.com\/?p=20602\/#%E4%BF%AE%E6%94%B9%E6%96%B0%E9%A1%B9%E7%9B%AE%E9%BB%98%E8%AE%A4%E8%B7%AF%E5%BE%84\" >\u4fee\u6539\u65b0\u9879\u76ee\u9ed8\u8ba4\u8def\u5f84<\/a><\/li><\/ul><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h1><span class=\"ez-toc-section\" id=\"%E6%96%B9%E6%A1%88%E4%B8%80%EF%BC%9AArduino_Maker_Workshop\"><\/span>\u65b9\u6848\u4e00\uff1aArduino Maker Workshop<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<p>20250705<br \/>\n\u5dee\u4e0d\u591a\u4e00\u5e74\u591a\u90fd\u6ca1\u7528 Arduino IDE \u4e86\uff0c\u8bb0\u5f97 2023 \u5e74\u7684\u65f6\u5019\u5c31\u6709 2.x \u7248\u672c\uff0c\u548c 1.x \u7248\u672c\u6709\u660e\u663e\u7279\u6027\u53d8\u5316\uff0c\u597d\u7528\u591a\u4e86\uff0c\u5feb\u6377\u952e\u548c VScode \u57fa\u672c\u90fd\u4e00\u6837\u4e86\uff0c\u754c\u9762\u5e03\u5c40\u90fd\u5f88\u50cf\uff0c\u4e0d\u77e5\u9053\u662f\u4e0d\u662f\u57fa\u4e8e\u540c\u6837\u7684\u6846\u67b6\u5f00\u53d1\u7684\uff0c\u53ea\u662f Arduino IDE \u8fd8\u662f\u663e\u5f97\u70c2\uff0c\u76f8\u6bd4\u4e8e VScode\u3002<br \/>\n\u6ce8\u91ca\u3001\u8bed\u6cd5\u63d0\u793a\u7ecf\u5e38\u5931\u6548\uff0cVScode \u5c31\u6b63\u5e38\u7a33\u5b9a<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2025\/07\/image-1751721769482.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 1552px; --smush-placeholder-aspect-ratio: 1552\/549;\" \/><\/p>\n<p>ARduino IDE \u5bf9\u4e8e\u9879\u76ee\u591a\u6587\u4ef6\u5448\u73b0\u4e5f\u4e0d\u597d\uff0c\u4f1a\u4e00\u6b21\u6027\u5168\u90e8\u6253\u5f00\u9879\u76ee\u4e2d\u7684\u6587\u4ef6<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2025\/07\/image-1751721856624.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 582px; --smush-placeholder-aspect-ratio: 582\/73;\" \/><\/p>\n<p>\u800c\u4e0d\u80fd\u50cf VScode \u90a3\u6837\u6839\u636e\u9700\u8981\u6253\u5f00\uff0c\u5e73\u65f6\u5448\u73b0\u6811\u72b6\u6587\u4ef6\u7ed3\u6784<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2025\/07\/image-1751721732268.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 512px; --smush-placeholder-aspect-ratio: 512\/432;\" \/><\/p>\n<p>\u800c\u4e14 VScode \u652f\u6301\u4f7f\u7528\u63d2\u4ef6\uff0c\u53ef\u6269\u5c55\u6027\u5f3a\uff0c\u6bd4\u5982 AI \u8f85\u52a9\u4ee3\u7801\u8865\u5168\u3002\u6628\u5929\u665a\u4e0a\u6211\u5c31\u5f00\u59cb\u627e\u53ef\u4ee5\u652f\u6301 Arduino \u7684 VScode \u63d2\u4ef6\uff0c\u53d1\u73b0\u5fae\u8f6f\u5f00\u53d1\u7684 Arduino \u63d2\u4ef6\u4e5f\u505c\u66f4\u4e86\uff0c\u4eca\u5929\u8bd5\u4e86 Arduino Maker Workshop\uff0c\u611f\u89c9\u6ca1\u5565\u5927\u95ee\u9898\uff0c\u53ef\u4ee5\u6b63\u5e38\u7f16\u8bd1\u548c\u4e0a\u4f20\u7a0b\u5e8f\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E5%AE%89%E8%A3%85\"><\/span>\u5b89\u88c5<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u76f4\u63a5\u5728 VScode \u7684\u6269\u5c55\u83dc\u5355\u91cc\u641c\u7d22 Arduino Maker Worksho \u5b89\u88c5\u5373\u53ef<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2025\/07\/image-1751722077135.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 525px; --smush-placeholder-aspect-ratio: 525\/434;\" \/><\/p>\n<p>\u5b89\u88c5\u540e\u6253\u5f00\u8bbe\u7f6e<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2025\/07\/image-1751722166214.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 691px; --smush-placeholder-aspect-ratio: 691\/441;\" \/><\/p>\n<p>\u8fd9\u4e2a\u8def\u5f84\u8bbe\u7f6e\u4e3a\u548c Arduino IDE \u9996\u9009\u9879\u91cc\u4e00\u81f4\uff08\u5982\u679c Arduino IDE \u6ca1\u6539\u8fc7\u7684\u8bdd\uff0cArduino Maker Workshop \u7684\u8fd9\u4e2a\u8def\u5f84\u5c31\u662f\u4e00\u81f4\u7684\uff0c\u4e0d\u9700\u8981\u6539\uff0c\u6211\u8fd9\u91cc\u662f\u6539\u8fc7\u7684\uff09\u3002<br \/>\n\u8fd9\u6837\u5c31\u53ef\u4ee5\u7528 Arduino IDE \u6765\u5728\u7ebf\u5b89\u88c5\u9700\u8981\u7684\u5f00\u53d1\u677f\u5de5\u5177\u94fe\u3001\u4e09\u65b9\u5e93\uff0c\u5e73\u65f6\u5f00\u53d1\u8c03\u8bd5\u5c31\u7528 VScode\uff0cVScode \u53ef\u4ee5\u627e\u5230 Arduino IDE \u5b89\u88c5\u7684\u6587\u4ef6<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2025\/07\/image-1751722217735.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 1189px; --smush-placeholder-aspect-ratio: 1189\/607;\" \/><\/p>\n<p><img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2025\/07\/image-1751722264628.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 798px; --smush-placeholder-aspect-ratio: 798\/502;\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E4%BD%BF%E7%94%A8\"><\/span>\u4f7f\u7528<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u521b\u5efa\u4e00\u4e2a\u9879\u76ee\u6587\u4ef6\u5939\uff0c\u7528 VScode \u6253\u5f00\u6587\u4ef6\u5939\uff0c\u521b\u5efa\u4e00\u4e2a .ino \u6269\u5c55\u540d\u7684\u6587\u4ef6<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2025\/07\/image-1751723270162.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 774px; --smush-placeholder-aspect-ratio: 774\/458;\" \/><\/p>\n<p>\u7136\u540e\u9009\u62e9\u4e0b\u81ea\u5df1\u7684\u5f00\u53d1\u677f\u548c\u7aef\u53e3<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2025\/07\/image-1751723032463.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 1361px; --smush-placeholder-aspect-ratio: 1361\/576;\" \/><\/p>\n<p>Compile\uff1a\u7f16\u8bd1<br \/>\nCompile\uff08Clean\uff09\uff1a\u6e05\u7a7a\u5df2\u7f16\u8bd1\u7684\u76ee\u6807\u6587\u4ef6\uff0c\u5168\u90e8\u91cd\u65b0\u7f16\u8bd1<br \/>\nUpload\uff1a\u4e0a\u4f20\u5230\u5f00\u53d1\u677f<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2025\/07\/image-1751723116011.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 286px; --smush-placeholder-aspect-ratio: 286\/406;\" \/><\/p>\n<h1><span class=\"ez-toc-section\" id=\"%E6%96%B9%E6%A1%88%E4%BA%8C%EF%BC%9APlatformIO\"><\/span>\u65b9\u6848\u4e8c\uff1aPlatformIO<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<p>20250706<br \/>\n\u7528 Arduino IDE \u7f16\u8bd1 Arduino \u5f00\u53d1\u677f\u7684\u7a0b\u5e8f\u8fd8\u597d\uff0c\u7f16\u8bd1 ESP32 \u7684\u7a0b\u5e8f\u90a3\u5c31\u592a\u6162\u4e86\u3002\u6628\u665a\u4e0a\u6298\u817e\u4e00\u756a\uff0c\u5c1d\u8bd5\u4e86\u4e0b Platform\uff0c\u7f16\u8bd1\u901f\u5ea6\u6bd4\u4f7f\u7528 Arduino \u5feb\u591a\u4e86\uff0c\u521b\u5efa\u9879\u76ee\u7684\u65f6\u5019\u53ef\u4ee5\u9009\u62e9 Arduino \u6846\u67b6\uff0c\u8fd9\u6837\u5c31\u53ef\u4ee5\u4f7f\u7528 Arduino IDE \u4e30\u5bcc\u591a\u6837\u7684\u5e93\u3002\u4e5f\u53ef\u4ee5\u4e0d\u4f7f\u7528 Arduino \u6846\u67b6\uff0c\u53ef\u4ee5\u9009\u62e9\u5404\u82af\u7247\u5382\u5546\u81ea\u5df1\u7684\u539f\u751f\u6846\u67b6\u3002<br \/>\n\u6211\u5bf9\u786c\u4ef6\u5c42\u9762\u4e0d\u662f\u5f88\u4e86\u89e3\uff0c\u5c31\u7528 Arduino \u6846\u67b6\uff0c\u4e0d\u9700\u8981\u914d\u7f6e\u5bc4\u5b58\u5668\u4ec0\u4e48\u7684\uff0c\u53ea\u9700\u8981\u89e3\u51b3\u8f6f\u4ef6\u5c42\u9762\u7684\u5de5\u4f5c\u903b\u8f91\uff0c\u7528\u4ee3\u7801\u8868\u793a\u51fa\u6765\u5373\u53ef\uff0cArduino \u7684\u4e09\u65b9\u5e93\u4e5f\u591a\uff0c\u975e\u5e38\u65b9\u4fbf\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E5%AE%89%E8%A3%85-2\"><\/span>\u5b89\u88c5<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u76f4\u63a5\u5728 VScode \u6269\u5c55\u91cc\u641c\u7d22\u5b89\u88c5\u5373\u53ef<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2025\/07\/image-1751769450150.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 511px; --smush-placeholder-aspect-ratio: 511\/548;\" \/><\/p>\n<p>\u5927\u9646\u5730\u533a\u6700\u597d\u914d\u7f6e\u4e0b\u4ee3\u7406\uff0c\u5728 VScode \u8bbe\u7f6e\u641c\u7d22 proxy\uff0c\u8bbe\u7f6e\u5230\u81ea\u5df1\u7684\u4ee3\u7406\u670d\u52a1\u5668\u5373\u53ef\uff0c\u8fd9\u6837\u4fdd\u8bc1\u540e\u7eed\u7684\u4f9d\u8d56\u6587\u4ef6\u53ef\u4ee5\u5feb\u901f\u4e0b\u8f7d<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2025\/07\/image-1751769574809.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 1209px; --smush-placeholder-aspect-ratio: 1209\/710;\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E4%BD%BF%E7%94%A8-2\"><\/span>\u4f7f\u7528<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u5728\u4e3b\u4fa7\u680f\u53ef\u4ee5\u770b\u5230\u8682\u8681\u5934\u56fe\u6807\uff0c\u9996\u6b21\u4f7f\u7528\u4f1a\u51c6\u5907\u76f8\u5173\u8d44\u6e90\uff0c\u9700\u8981\u989d\u5916\u82b1\u4e00\u4e9b\u65f6\u95f4\uff0c\u52a0\u8f7d\u597d\u4ee5\u540e\u663e\u793a\u4e0b\u9762\u9875\u9762<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2025\/07\/image-1751769648448.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 520px; --smush-placeholder-aspect-ratio: 520\/506;\" \/><\/p>\n<p>\u70b9 <strong>Pick a folder<\/strong> \u6253\u5f00\u5df2\u6709\u7684 PlatformIO \u9879\u76ee\uff0c\u70b9 <strong>Create New Project<\/strong> \u521b\u5efa\u65b0\u9879\u76ee\uff0c\u70b9\u540e\u8005\u8df3\u5230 PlatformIO \u7684\u4e3b\u9875\u9762<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2025\/07\/image-1751769982086.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 1446px; --smush-placeholder-aspect-ratio: 1446\/1029;\" \/><\/p>\n<p>\u70b9 <strong>New Project<\/strong> \u65b0\u5efa\u9879\u76ee\uff0c\u8bbe\u7f6e\u9879\u76ee\u540d\u79f0\uff0c\u9009\u62e9\u5f00\u53d1\u677f\uff0c\u6846\u67b6\u53ef\u4ee5\u7528 Arduino\uff0c\u9009\u62e9\u9879\u76ee\u8def\u5f84\uff08\u9ed8\u8ba4\u8def\u5f84\u662f\u5728\u6587\u6863\u76ee\u5f55\u4e0b\uff09\uff0c\u70b9 <strong>Finish<\/strong> \u5b8c\u6210\u521b\u5efa\u3002\u5982\u679c\u8fd9\u79cd\u5f00\u53d1\u677f\u662f\u9996\u6b21\u521b\u5efa\u9879\u76ee\uff0c\u4f1a\u82b1\u4e00\u5b9a\u65f6\u95f4\u4e0b\u8f7d\u76f8\u5173\u5de5\u5177\u94fe\uff0c\u6240\u4ee5\u524d\u9762\u8bf4\u5927\u9646\u5730\u533a\u6700\u597d\u914d\u7f6e\u4ee3\u7406\uff0c\u76f4\u8fde\u4e0b\u8f7d\u901f\u5ea6\u6709\u53ef\u80fd\u60e8\u4e0d\u5fcd\u7779\u3002<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2025\/07\/image-1751770493939.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 598px; --smush-placeholder-aspect-ratio: 598\/901;\" \/><\/p>\n<p>\u521b\u5efa\u5b8c\u6210\u540e\uff0c\u7528 VScode \u6253\u5f00\u521b\u5efa\u7684\u9879\u76ee\u6587\u4ef6\u5939<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2025\/07\/image-1751770933304.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 507px; --smush-placeholder-aspect-ratio: 507\/484;\" \/><\/p>\n<p>\u6e90\u6587\u4ef6\u653e\u5728 src \u76ee\u5f55\u4e0b\uff0c\u5934\u6587\u4ef6\u653e\u5728 include \u76ee\u5f55\u4e0b\uff0cmain.cpp \u662f\u5165\u53e3\u6587\u4ef6\uff0c\u8bed\u6cd5\u4e0a\u548c Arduino \u57fa\u672c\u4e00\u6837<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2025\/07\/image-1751770967490.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 981px; --smush-placeholder-aspect-ratio: 981\/502;\" \/><\/p>\n<p>\u5728\u5df2\u7ecf\u6253\u5f00 PlatformIO \u9879\u76ee\u7684\u60c5\u51b5\u4e0b\uff0c\u6253\u5f00 PlatformIO \u83dc\u5355\u680f\uff0c\u53ef\u4ee5\u8fdb\u884c Build \u6784\u5efa\u3001Upload \u4e0a\u4f20\u7b49\u64cd\u4f5c<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2025\/07\/image-1751771387104.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 509px; --smush-placeholder-aspect-ratio: 509\/742;\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E4%BD%BF%E7%94%A8_Arduino_%E5%BA%93\"><\/span>\u4f7f\u7528 Arduino \u5e93<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u53ef\u4ee5\u628a Arduino \u7684\u5e93\u653e\u5230\u9879\u76ee\u5f55\u4e0b\u7684 lib \u6587\u4ef6\u5939\u4e2d<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2025\/07\/image-1751771087404.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 1587px; --smush-placeholder-aspect-ratio: 1587\/1003;\" \/><\/p>\n<p>\u6216\u8005\u76f4\u63a5\u5728\u5f53\u524d\u9879\u76ee\u7684 platformio.ini \u6587\u4ef6\u4e2d\u6307\u5b9a lib_extra_dirs \u7684\u503c\u4e3a Arduino IDE \u7684\u5e93\u8def\u5f84\uff0c\u8fd9\u6837 Arduino IDE \u5b89\u88c5\u597d\u7684\u5e93\uff0c\u76f4\u63a5\u4f7f\u7528\u5373\u53ef\uff0c\u907f\u514d\u518d\u590d\u5236\u4e00\u4efd<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2025\/07\/image-1751771294959.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 1079px; --smush-placeholder-aspect-ratio: 1079\/526;\" \/><\/p>\n<p>\u5728 PlatformIO \u4e2d\u53ef\u4ee5\u67e5\u770b\u5230 Arduino IDE \u5e93<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2025\/07\/image-1751771338070.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 1752px; --smush-placeholder-aspect-ratio: 1752\/977;\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E4%BF%AE%E6%94%B9%E6%96%B0%E9%A1%B9%E7%9B%AE%E9%BB%98%E8%AE%A4%E8%B7%AF%E5%BE%84\"><\/span>\u4fee\u6539\u65b0\u9879\u76ee\u9ed8\u8ba4\u8def\u5f84<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u5728 PlatformIO \u4e2d\uff0c\u5de6\u4e0b\u65b9\u7684 <strong>Quick Access<\/strong> -&gt; <strong>Miscellaneous<\/strong> -&gt; <strong>New Terminal<\/strong>\uff0c\u70b9\u51fb\u6253\u5f00\u65b0\u7ec8\u7aef<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2025\/07\/image-1751802810801.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 543px; --smush-placeholder-aspect-ratio: 543\/1218;\" \/><\/p>\n<p>\u5728\u7ec8\u7aef\u6267\u884c\u547d\u4ee4\u4fee\u6539<\/p>\n<pre><code class=\"language-bash\">pio settings set projects_dir \u65b0\u8def\u5f84<\/code><\/pre>\n<p>\u6bd4\u5982\u6211\u8fd9\u91cc\u8981\u4fee\u6539\u4e3a <strong>D:\\work\\development\\Arduino\\PlatformIO<\/strong>\u6267\u884c<\/p>\n<pre><code class=\"language-bash\">pio settings set projects_dir D:\\work\\development\\Arduino\\PlatformIO<\/code><\/pre>\n<p><img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2025\/07\/image-1751803057589.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 1039px; --smush-placeholder-aspect-ratio: 1039\/185;\" \/><\/p>\n<p>\u4fee\u6539\u540e\uff0c\u5173\u95ed VScode\uff0c\u518d\u91cd\u65b0\u6253\u5f00\u751f\u6548<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2025\/07\/image-1751803179181.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 601px; --smush-placeholder-aspect-ratio: 601\/467;\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u65b9\u6848\u4e00\uff1aArduino Maker Workshop 20250705 \u5dee\u4e0d\u591a\u4e00\u5e74\u591a\u90fd\u6ca1\u7528 Arduino I [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"zakra_page_container_layout":"customizer","zakra_page_sidebar_layout":"customizer","zakra_remove_content_margin":false,"zakra_sidebar":"customizer","zakra_transparent_header":"customizer","zakra_logo":0,"zakra_main_header_style":"default","zakra_menu_item_color":"","zakra_menu_item_hover_color":"","zakra_menu_item_active_color":"","zakra_menu_active_style":"","zakra_page_header":true,"_lmt_disableupdate":"no","_lmt_disable":"no","footnotes":""},"categories":[1,603,589,647,599,575],"tags":[1472,1483,1014,1484,1471,1481,1487,1474,1007,1486,1479,1482,1478,1488,1485],"class_list":["post-20602","post","type-post","status-publish","format-standard","hentry","category-all","category-arduino","category-c-c","category-platformio","category-599","category-575","tag-arduino","tag-arduino-maker-workshop","tag-c","tag-ide","tag-platformio","tag-vscode","tag-1487","tag-1474","tag-1007","tag-1486","tag-1479","tag-1482","tag-1478","tag-1488","tag-1485"],"modified_by":"IYATT-yx","_links":{"self":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/posts\/20602","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=20602"}],"version-history":[{"count":9,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/posts\/20602\/revisions"}],"predecessor-version":[{"id":20655,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/posts\/20602\/revisions\/20655"}],"wp:attachment":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=20602"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=20602"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=20602"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}