{"id":2749,"date":"2020-10-08T13:21:31","date_gmt":"2020-10-08T05:21:31","guid":{"rendered":"http:\/\/www.rotor.com.tw\/?p=2749"},"modified":"2020-10-08T13:21:31","modified_gmt":"2020-10-08T05:21:31","slug":"02-%e8%aa%8d%e8%ad%98arduino-%e7%a8%8b%e5%bc%8f%e6%9e%b6%e6%a7%8b","status":"publish","type":"post","link":"https:\/\/www.rotor.com.tw\/?p=2749","title":{"rendered":"#02 \u8a8d\u8b58Arduino \u7a0b\u5f0f\u67b6\u69cb"},"content":{"rendered":"\n<p>\u672c\u7ae0\u7bc0\u5167\u5bb9\u82e5\u8981\u8a73\u7d30\u95b1\u8b80\u5167\u5bb9\uff0c\u8acb\u81f3Arduino\u7db2\u7ad9\u67e5\u8a62(<a href=\"https:\/\/www.arduino.cc\/reference\/en\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/www.arduino.cc\/reference\/en\/<\/a>)<\/p>\n\n\n\n<p>Arduino IDE\u7de8\u8f2f\u5668\u662f\u5e38\u7528\u7684C\u8a9e\u8a00\u7de8\u8b6f\u5668\uff0cArduino IDE\u7de8\u8f2f\u5668\u7279\u8272\u9ad4\u7a4d\u5c0f\u3001\u4f7f\u7528C\u8a9e\u8a00\u7de8\u5beb\u4ee5\u53ca\u652f\u63f4\u5176\u4ed6\u76f8\u5bb9\u7684MCU\u958b\u767c\u7248\uff0c\u5982ESP8266\u3001ESP32&#8230;\u7b49\u958b\u767c\u7248\uff0c\u975e\u5e38\u53d7\u6b61\u8fce\u7684\u5de5\u5177\u3002<\/p>\n\n\n\n<p>Arduino IDE\u4e0b\u8f09\u8655 <a rel=\"noreferrer noopener\" href=\"https:\/\/www.arduino.cc\/en\/Main\/Software\" target=\"_blank\">https:\/\/www.arduino.cc\/en\/Main\/Software<\/a> <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"584\" height=\"260\" src=\"https:\/\/i0.wp.com\/www.rotor.com.tw\/wp-content\/uploads\/2020\/10\/2020100301.png?resize=584%2C260&#038;ssl=1\" alt=\"\" class=\"wp-image-2754\" srcset=\"https:\/\/i0.wp.com\/www.rotor.com.tw\/wp-content\/uploads\/2020\/10\/2020100301.png?resize=1024%2C456&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.rotor.com.tw\/wp-content\/uploads\/2020\/10\/2020100301.png?resize=300%2C134&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.rotor.com.tw\/wp-content\/uploads\/2020\/10\/2020100301.png?resize=768%2C342&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.rotor.com.tw\/wp-content\/uploads\/2020\/10\/2020100301.png?resize=500%2C223&amp;ssl=1 500w, https:\/\/i0.wp.com\/www.rotor.com.tw\/wp-content\/uploads\/2020\/10\/2020100301.png?w=1475&amp;ssl=1 1475w, https:\/\/i0.wp.com\/www.rotor.com.tw\/wp-content\/uploads\/2020\/10\/2020100301.png?w=1168&amp;ssl=1 1168w\" sizes=\"(max-width: 584px) 100vw, 584px\" data-recalc-dims=\"1\" \/><\/figure>\n\n\n\n<!--more-->\n\n\n\n<p>Arduino\u662f\u4e00\u500b\u958b\u653e\u539f\u59cb\u78bc\u7684\u7d44\u7e54\uff0c\u63d0\u4f9b\u958b\u767c\u8a2d\u8a08\u4eba\u54e1\u5efa\u7acb\u96fb\u8def\u96db\u5f62\uff0c\u5141\u8a31\u4f7f\u7528\u8005\u5efa\u7acb\u529f\u80fd\u4e92\u52d5\u7684\u5143\u4ef6\u5206\u4eab\uff0c\u4ed6\u5011\u662f\u9700\u8981\u4f7f\u7528\u6eff\u610f\u5ea6\u9ad8\u7684\u7528\u6236\u9032\u884c\u8d0a\u52a9\uff0c\u7e7c\u7e8c\u63a8\u52d5\u958b\u653e\u539f\u59cb\u78bc\u5404\u9805\u5c08\u6848\uff0c\u56e0\u6b64\u4e0b\u8f09Arduino IDE\u7684\u7de8\u8f2f\u5668\u904e\u7a0b\u4e2d\uff0c\u6703\u51fa\u73fe\u8b93\u4f7f\u7528\u8005\u4e0b\u8f09\u5361\u95dc\u7684\u9078\u9805\uff0c\u82e5\u6709\u9918\u529b\u8005\u5c31\u5c31\u9032\u884c\u5be6\u8cea\u7684\u8d0a\u52a9\u8ca2\u737b\uff0c\u5982\u679c\u53ea\u662f\u5b78\u7fd2\u53ef\u4ee5\u76f4\u63a5\u7e5e\u9053\u4e0b\u8f09\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"584\" height=\"597\" src=\"https:\/\/i0.wp.com\/www.rotor.com.tw\/wp-content\/uploads\/2020\/10\/2020100302.png?resize=584%2C597&#038;ssl=1\" alt=\"\" class=\"wp-image-2752\" srcset=\"https:\/\/i0.wp.com\/www.rotor.com.tw\/wp-content\/uploads\/2020\/10\/2020100302.png?resize=1001%2C1024&amp;ssl=1 1001w, https:\/\/i0.wp.com\/www.rotor.com.tw\/wp-content\/uploads\/2020\/10\/2020100302.png?resize=293%2C300&amp;ssl=1 293w, https:\/\/i0.wp.com\/www.rotor.com.tw\/wp-content\/uploads\/2020\/10\/2020100302.png?resize=768%2C785&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.rotor.com.tw\/wp-content\/uploads\/2020\/10\/2020100302.png?w=1100&amp;ssl=1 1100w\" sizes=\"(max-width: 584px) 100vw, 584px\" data-recalc-dims=\"1\" \/><\/figure>\n\n\n\n<p>\u5b89\u88dd\u904e\u7a0b\u4e0d\u591a\u505a\u8d05\u8ff0\uff0c\u5efa\u8b70\u5b8c\u6574\u5b89\u88dd\u4e26\u4fe1\u4efbArduino\u6240\u767c\u884c\u7684\u7a0b\u5f0f\u9078\u9805\u52fe\u9078\uff0c\u53ef\u4ee5\u907f\u514d\u4e0d\u5fc5\u8981\u7684\u932f\u8aa4\u554f\u984c\u3002<\/p>\n\n\n\n<p>\u5b89\u88dd\u5b8c\u6210\u5f8c\uff0c\u57f7\u884cArduino\u7684\u7a0b\u5f0f\u7de8\u8f2f\u5668\uff0c\u958b\u555f\u7bc4\u4f8b\u4e86\u89e3\u7a0b\u5f0f\u7684\u67b6\u69cb\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"584\" height=\"580\" src=\"https:\/\/i0.wp.com\/www.rotor.com.tw\/wp-content\/uploads\/2020\/10\/2020100303.png?resize=584%2C580&#038;ssl=1\" alt=\"\" class=\"wp-image-2759\" srcset=\"https:\/\/i0.wp.com\/www.rotor.com.tw\/wp-content\/uploads\/2020\/10\/2020100303.png?resize=1024%2C1017&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.rotor.com.tw\/wp-content\/uploads\/2020\/10\/2020100303.png?resize=300%2C298&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.rotor.com.tw\/wp-content\/uploads\/2020\/10\/2020100303.png?resize=150%2C150&amp;ssl=1 150w, https:\/\/i0.wp.com\/www.rotor.com.tw\/wp-content\/uploads\/2020\/10\/2020100303.png?resize=768%2C763&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.rotor.com.tw\/wp-content\/uploads\/2020\/10\/2020100303.png?resize=302%2C300&amp;ssl=1 302w, https:\/\/i0.wp.com\/www.rotor.com.tw\/wp-content\/uploads\/2020\/10\/2020100303.png?w=1133&amp;ssl=1 1133w\" sizes=\"(max-width: 584px) 100vw, 584px\" data-recalc-dims=\"1\" \/><\/figure>\n\n\n\n<p>\u4e0a\u5716\u7684\u7bc4\u4f8b\u662f\u8b93Arduino \u958b\u767c\u7248\u5167\u5efaLED\u71c8\u9583\u720d\u7684\u6548\u679c\uff0c\u8a31\u591a\u4f7f\u7528\u8005\u6703\u5c07\u9019\u500b\u7bc4\u4f8b\u8996\u70ba\u5224\u5b9a\u624b\u4e0a\u7684Arduino \u958b\u767c\u677f\u597d\u58de\u7684\u65b9\u6cd5\u3002\u4ee5\u4e0b\u662f\u7a0b\u5f0f\u7684\u7bc4\u4f8b\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: arduino; highlight: [26,27,28,29,32,33,34,35,36,37]; title: ; notranslate\" title=\"\">\n\/*\n  Blink\n\n  Turns an LED on for one second, then off for one second, repeatedly.\n\n  Most Arduinos have an on-board LED you can control. On the UNO, MEGA and ZERO\n  it is attached to digital pin 13, on MKR1000 on pin 6. LED_BUILTIN is set to\n  the correct LED pin independent of which board is used.\n  If you want to know what pin the on-board LED is connected to on your Arduino\n  model, check the Technical Specs of your board at:\n  https:\/\/www.arduino.cc\/en\/Main\/Products\n\n  modified 8 May 2014\n  by Scott Fitzgerald\n  modified 2 Sep 2016\n  by Arturo Guadalupi\n  modified 8 Sep 2016\n  by Colby Newman\n\n  This example code is in the public domain.\n\n  http:\/\/www.arduino.cc\/en\/Tutorial\/Blink\n*\/\n\n\/\/ the setup function runs once when you press reset or power the board\nvoid setup() {\n  \/\/ initialize digital pin LED_BUILTIN as an output.\n  pinMode(LED_BUILTIN, OUTPUT);\n}\n\n\/\/ the loop function runs over and over again forever\nvoid loop() {\n  digitalWrite(LED_BUILTIN, HIGH);   \/\/ turn the LED on (HIGH is the voltage level)\n  delay(1000);                       \/\/ wait for a second\n  digitalWrite(LED_BUILTIN, LOW);    \/\/ turn the LED off by making the voltage LOW\n  delay(1000);                       \/\/ wait for a second\n}\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\">Arduino C\u8a9e\u8a00\u67b6\u69cb<\/h2>\n\n\n\n<p>\u5728\u4e0a\u982d\u7684\u7bc4\u4f8b\u7a0b\u5f0f\u7247\u6bb5\u6e05\u695a\u53ef\u4ee5\u770b\u898b\u5169\u500b\u526f\u7a0b\u5f0f\uff0c\u5206\u5225\u662f\uff1a setup() \u8207 loop()\uff0c\u5169\u500b\u5dee\u7570\u9ede\u8aaa\u660e\u5982\u4e0b\uff1a<\/p>\n\n\n\n<ul><li>setup() \u7576Arduino\u958b\u767c\u677f\u9001\u96fb\u555f\u52d5\u6703\u7522\u751f\u958b\u6a5f\u7684\u4e8b\u4ef6\uff0c\u81ea\u52d5\u5f15\u5c0e\u57f7\u884csetup\u526f\u7a0b\u5f0f\u3002<\/li><li>loop() Arduino\u6301\u7e8c\u5de5\u4f5c\u671f\u9593\u7684\u89f8\u767c\u4e8b\u4ef6\uff0c\u5468\u800c\u5fa9\u59cb\u6703\u6301\u7e8c\u4e0d\u65b7\u57f7\u884cloop\u526f\u7a0b\u5f0f\u3002<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"584\" height=\"367\" src=\"https:\/\/i0.wp.com\/www.rotor.com.tw\/wp-content\/uploads\/2020\/10\/2020100304-1.png?resize=584%2C367&#038;ssl=1\" alt=\"\" class=\"wp-image-2775\" srcset=\"https:\/\/i0.wp.com\/www.rotor.com.tw\/wp-content\/uploads\/2020\/10\/2020100304-1.png?resize=1024%2C643&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.rotor.com.tw\/wp-content\/uploads\/2020\/10\/2020100304-1.png?resize=300%2C188&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.rotor.com.tw\/wp-content\/uploads\/2020\/10\/2020100304-1.png?resize=768%2C482&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.rotor.com.tw\/wp-content\/uploads\/2020\/10\/2020100304-1.png?resize=478%2C300&amp;ssl=1 478w, https:\/\/i0.wp.com\/www.rotor.com.tw\/wp-content\/uploads\/2020\/10\/2020100304-1.png?w=1236&amp;ssl=1 1236w, https:\/\/i0.wp.com\/www.rotor.com.tw\/wp-content\/uploads\/2020\/10\/2020100304-1.png?w=1168&amp;ssl=1 1168w\" sizes=\"(max-width: 584px) 100vw, 584px\" data-recalc-dims=\"1\" \/><\/figure>\n\n\n\n<p>Arduino \u7684\u4e8b\u4ef6\u7ba1\u7406\u4e0d\u5149\u53ea\u6709setup() \u8207 loop()\u5169\u500b\uff0c\u9084\u6709\u5176\u4ed6\u7684\u4e8b\u4ef6\u89f8\u767c\u7a0b\u5e8f\uff0c\u4f8b\u5982\uff1a\u5be6\u9ad4\u5e8f\u5217\u57e0\u901a\u8a0a(rs232)\u4e8b\u4ef6 serialEvent()\u3001\u786c\u9ad4\u4e2d\u65b7\u4e8b\u4ef6\u6355\u6349 attachInterrupt()\uff0c\u5982\u4e0b\u7c21\u5716\u6240\u793a\u3002\u9019\u4e9b\u76f8\u95dc\u7684\u4e8b\u4ef6\u5f8c\u7e8c\u518d\u9032\u884c\u88dc\u5145\u8aaa\u660e\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"584\" height=\"311\" src=\"https:\/\/i0.wp.com\/www.rotor.com.tw\/wp-content\/uploads\/2020\/10\/2020100305.png?resize=584%2C311&#038;ssl=1\" alt=\"\" class=\"wp-image-2777\" srcset=\"https:\/\/i0.wp.com\/www.rotor.com.tw\/wp-content\/uploads\/2020\/10\/2020100305.png?resize=1024%2C545&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.rotor.com.tw\/wp-content\/uploads\/2020\/10\/2020100305.png?resize=300%2C160&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.rotor.com.tw\/wp-content\/uploads\/2020\/10\/2020100305.png?resize=768%2C409&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.rotor.com.tw\/wp-content\/uploads\/2020\/10\/2020100305.png?resize=500%2C266&amp;ssl=1 500w, https:\/\/i0.wp.com\/www.rotor.com.tw\/wp-content\/uploads\/2020\/10\/2020100305.png?w=1406&amp;ssl=1 1406w, https:\/\/i0.wp.com\/www.rotor.com.tw\/wp-content\/uploads\/2020\/10\/2020100305.png?w=1168&amp;ssl=1 1168w\" sizes=\"(max-width: 584px) 100vw, 584px\" data-recalc-dims=\"1\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Arduino C\u8a9e\u8a00\u7684\u8b8a\u6578\u8207\u578b\u614b<\/h2>\n\n\n\n<ul><li>\u5168\u57df\u8b8a\u6578(Public)\uff1a\u751f\u547d\u9031\u671f\u8207\u7cfb\u7d71\u540c\u5b58\u4ea1\uff0c\u4efb\u4f55\u526f\u7a0b\u5f0f\u90fd\u53ef\u4ee5\u4f7f\u7528\u5df2\u7d93\u5ba3\u544a\u7684\u8b8a\u6578\u5167\u5bb9\u3002<\/li><li>\u2022\u79c1\u6709\u8b8a\u6578(Private)\uff1a\u8b8a\u6578\u5b58\u6d3b\u6642\u9593\u50c5\u9650\u65bc\u7a0b\u5f0f\u6240\u57f7\u884c\u51fd\u6578\u5167\uff0c\u7576\u96e2\u958b\u51fd\u6578\u5f8c\uff0c\u8a72\u8b8a\u6578\u5167\u5bb9\u7acb\u5373\u6e05\u9664\uff0c\u79c1\u6709\u8b8a\u6578\u7121\u6cd5\u8de8\u526f\u7a0b\u5f0f\u8abf\u7528\u3002<\/li><\/ul>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: arduino; title: ; notranslate\" title=\"\">\n\/* \u5168\u57df\u8b8a\u6578\u7bc4\u4f8b *\/\n\/\/\u5ba3\u544a\u4e00\u500b\u5168\u57df\u8b8a\u6578\nint status = 0;\n\nvoid setup()\n{\n  \/\/\u7a0b\u5f0f\u78bc\n  status = 1; \/\/\u8a2d\u5b9a\u8b8a\u6578\u5167\u5bb9=1\n}\nvoid loop()\n{\n  \/\/\u7a0b\u5f0f\u78bc\n  status ++; \/\/\u6bcf\u6b21\u57f7\u884cloop()\u4e8b\u4ef6\uff0cstatus\u7684\u5167\u5bb9+1\n}\n<\/pre><\/div>\n\n\n<hr>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: arduino; title: ; notranslate\" title=\"\">\n\/* \u79c1\u6709\u8b8a\u6578\u7bc4\u4f8b *\/\nvoid setup()\n{\n  int status = 0; \/\/\u5ba3\u544asetup()\u526f\u7a0b\u5f0f\u5167\u7684\u8b8a\u6578\n\/\/\u7a0b\u5f0f\u78bc\n}\nvoid loop()\n{\n  \/\/\u7a0b\u5f0f\u78bc\n  int status = 1; \/\/\u5ba3\u544aloop()\u526f\u7a0b\u5f0f\u5167\u7684\u8b8a\u6578\uff0c\u96d6\u7136\u8b8a\u6578\u540d\u7a31\u76f8\u540c\uff0c\u4f46\u5f7c\u6b64\u4e4b\u9593\u7121\u95dc\u806f\n}\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\">\u5e38\u898b\u7684\u8b8a\u6578\u578b\u614b<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>\u8cc7\u6599\u578b\u614b<\/td><td>&nbsp;\u8aaa\u660e<\/td><td>&nbsp;\u8a18\u61b6\u9ad4\u9577\u5ea6<\/td><td>&nbsp;\u6578\u503c\u7bc4\u570d<\/td><\/tr><tr><td>&nbsp;boolean<\/td><td>&nbsp;\u5e03\u6797<\/td><td>&nbsp;8 bits<\/td><td>&nbsp;true (1, HIGH), false(0, LOW)<\/td><\/tr><tr><td>&nbsp;byte<\/td><td>&nbsp;\u4f4d\u5143\u7d44<\/td><td>&nbsp;8 bits<\/td><td>&nbsp;0~255<\/td><\/tr><tr><td>&nbsp;char<\/td><td>&nbsp;\u5b57\u5143<\/td><td>&nbsp;8 bits<\/td><td>&nbsp;-128~127<\/td><\/tr><tr><td>&nbsp;short&nbsp;<\/td><td>&nbsp;\u77ed\u6574\u6578<\/td><td>&nbsp;16 bits<\/td><td>&nbsp;-32768~32767<\/td><\/tr><tr><td>&nbsp;int<\/td><td>&nbsp;\u6574\u6578<\/td><td>&nbsp;16 bits<\/td><td>&nbsp;-32768~32767<\/td><\/tr><tr><td>&nbsp;word<\/td><td>&nbsp;\u5b57<\/td><td>&nbsp;16 bits<\/td><td>&nbsp;0~65535<\/td><\/tr><tr><td>&nbsp;long<\/td><td>&nbsp;\u9577\u6574\u6578<\/td><td>&nbsp;32 bits<\/td><td>&nbsp;-2147483648~2147483647<\/td><\/tr><tr><td>&nbsp;float<\/td><td>&nbsp;\u6d6e\u9ede\u6578<\/td><td>&nbsp;32 bits<\/td><td>&nbsp;+-3.4028235e+38<\/td><\/tr><tr><td>&nbsp;double<\/td><td>&nbsp;\u500d\u7cbe\u5ea6\u6d6e\u9ede\u6578<\/td><td>&nbsp;32 bits<\/td><td>&nbsp;+-3.4028235e+38<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u8b8a\u6578\u5ba3\u544a\u7684\u65b9\u6cd5<\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: arduino; title: ; notranslate\" title=\"\">\nint Name;\nint Name = 0;\nchar Name = &#039;c&#039;;\nfloat pi = 3.1415;\n\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\">\u5e38\u7528\u7684Arduino C\u6d41\u7a0b\u63a7\u5236<\/h2>\n\n\n\n<p>C\u8a9e\u8a00\u5e38\u7528\u7684\u6d41\u7a0b\u63a7\u5236:<\/p>\n\n\n\n<ul><li>if&#8230; else&#8230; \uff1a\u7576\u689d\u4ef6\u5f0f\u70ba true(\u771f)\u6642\uff0c\u5c31\u57f7\u884c\u6210\u7acb\u6558\u8ff0\u5340\u584a\uff0c\u7576\u689d\u4ef6\u5f0f\u70ba false(\u5047)\u6642\uff0c\u5247\u57f7\u884c\u4e0d\u6210\u7acb\u6558\u8ff0\u5340\u584a\u3002<\/li><li>for \u8ff4\u5708\uff1a\u6709\u689d\u4ef6\u8a08\u6578\u8ff4\u5708\u3002<\/li><li>do\u2026 while\u8ff4\u5708\uff1a\u505a\u5b8cdo\u8ff4\u5708\u5f8c\uff0cwhile\u689d\u4ef6\u70ba&#8221;true&#8221;\u518d\u6b21\u9032\u5165do\u8ff4\u5708\u3002<\/li><li>while\u8ff4\u5708\uff1awhile\u689d\u4ef6\u70ba&#8221;true&#8221;\uff0c\u5247\u9032\u5165while\u8ff4\u5708\u3002<\/li><li>switch&#8230; case&#8230; \u689d\u4ef6\u9078\u64c7\uff1aswitch\u4e00\u500b\u8b8a\u6578\uff0c\u7136\u5f8c\u900f\u904ecase\u6bd4\u5c0d\u5167\u5bb9\uff0c\u5167\u5bb9\u7b26\u5408\u6642\u6703\u9032\u5165case\u6d41\u7a0b\u3002<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"584\" height=\"324\" src=\"https:\/\/i0.wp.com\/www.rotor.com.tw\/wp-content\/uploads\/2020\/10\/2020100306-1.png?resize=584%2C324&#038;ssl=1\" alt=\"\" class=\"wp-image-2794\" srcset=\"https:\/\/i0.wp.com\/www.rotor.com.tw\/wp-content\/uploads\/2020\/10\/2020100306-1.png?resize=1024%2C568&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.rotor.com.tw\/wp-content\/uploads\/2020\/10\/2020100306-1.png?resize=300%2C166&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.rotor.com.tw\/wp-content\/uploads\/2020\/10\/2020100306-1.png?resize=768%2C426&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.rotor.com.tw\/wp-content\/uploads\/2020\/10\/2020100306-1.png?resize=1536%2C852&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.rotor.com.tw\/wp-content\/uploads\/2020\/10\/2020100306-1.png?resize=500%2C277&amp;ssl=1 500w, https:\/\/i0.wp.com\/www.rotor.com.tw\/wp-content\/uploads\/2020\/10\/2020100306-1.png?w=1986&amp;ssl=1 1986w, https:\/\/i0.wp.com\/www.rotor.com.tw\/wp-content\/uploads\/2020\/10\/2020100306-1.png?w=1168&amp;ssl=1 1168w, https:\/\/i0.wp.com\/www.rotor.com.tw\/wp-content\/uploads\/2020\/10\/2020100306-1.png?w=1752&amp;ssl=1 1752w\" sizes=\"(max-width: 584px) 100vw, 584px\" data-recalc-dims=\"1\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u7ae0\u7bc0\u5167\u5bb9\u82e5\u8981\u8a73\u7d30\u95b1\u8b80\u5167\u5bb9\uff0c\u8acb\u81f3Arduino\u7db2\u7ad9\u67e5\u8a62(https:\/\/www. &hellip; <a href=\"https:\/\/www.rotor.com.tw\/?p=2749\">\u95b1\u8b80\u5168\u6587 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false},"categories":[57],"tags":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.rotor.com.tw\/index.php?rest_route=\/wp\/v2\/posts\/2749"}],"collection":[{"href":"https:\/\/www.rotor.com.tw\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rotor.com.tw\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rotor.com.tw\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rotor.com.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2749"}],"version-history":[{"count":36,"href":"https:\/\/www.rotor.com.tw\/index.php?rest_route=\/wp\/v2\/posts\/2749\/revisions"}],"predecessor-version":[{"id":2797,"href":"https:\/\/www.rotor.com.tw\/index.php?rest_route=\/wp\/v2\/posts\/2749\/revisions\/2797"}],"wp:attachment":[{"href":"https:\/\/www.rotor.com.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2749"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rotor.com.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2749"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rotor.com.tw\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2749"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}