{"id":1797,"date":"2017-12-24T09:33:19","date_gmt":"2017-12-24T01:33:19","guid":{"rendered":"https:\/\/drho.club\/?p=1797"},"modified":"2017-12-24T09:33:19","modified_gmt":"2017-12-24T01:33:19","slug":"arduino-unit-1","status":"publish","type":"post","link":"https:\/\/104.es\/index.php\/2017\/12\/24\/arduino-unit-1\/","title":{"rendered":"[Arduino\u521d\u968e\u5be6\u7fd2] Unit 1\uff1a\u9ede\u4eae\u677f\u4e0a\u7684\u7b2c 13 \u8173LED"},"content":{"rendered":"<p>\u5728Arduino IDE\u7684\u7a0b\u9806\u5229\u5b89\u88dd\u5b8c\u7562\u4e4b\u5f8c\uff0c\u628a Arduino\u677f\u5b50\u9023\u4e0a\u96fb\u8166\u7684\u7b2c\u4e00\u500b\u6e2c\u8a66\u7a0b\u5f0f\uff0c\u5c31\u662f\u628a\u677f\u5b50\u4e0a\u9023\u63a5\u5728\u7b2c13\u652f\u8173\u4e0a\u7684\u90a3\u9846\u5c0f\u5c0f\u7684LED\u9ede\u4eae\uff0c\u4e26\u8b93\u5b83\u9583\u720d\uff0c\u4ee5\u4fbf\u6e2c\u8a66\u6240\u6709\u7684\u9023\u63a5\u662f\u5426\u90fd\u6b63\u5e38\u3002\u4ee5\u4e0b\u5c31\u662f\u7a0b\u5f0f\u78bc\uff08\u8acb\u7559\u610f\uff0c\u5728\u8907\u88fd\u7a0b\u5f0f\u78bc\u7684\u6642\u5019\uff0c\u524d\u9762\u7684\u884c\u865f\u662f\u4e0d\u9700\u8981\u7684\u5594\uff09\uff1a<\/p>\n<p>[code]<\/p>\n<p>void setup() {<br \/>\n  pinMode(13, OUTPUT);<br \/>\n  digitalWrite(13, LOW);<br \/>\n}<\/p>\n<p>void loop() {<br \/>\n  digitalWrite(13, HIGH);<br \/>\n  delay(500);<br \/>\n  digitalWrite(13, LOW);<br \/>\n  delay(500);<br \/>\n}<br \/>\n[\/code]<\/p>\n<p>\u5982\u679c\u53ef\u4ee5\u9806\u5229\u7de8\u8b6f\u4e26\u4e0a\u50b3\u5230Arduino\u4e4b\u5f8c\uff0c\u4f60\u7684Arduino\u5c31\u53ef\u4ee5\u5982\u4e0b\u9762\u9019\u500b\u5f71\u7247\u4e00\u6a23\uff0c\u8b93\u677f\u5b50\u4e0a\u7684LED\u6bcf\u79d2\u9583\u720d\u4e00\u6b21\u3002<\/p>\n<p><iframe loading=\"lazy\" title=\"Arduino\u57fa\u790e\u5be6\u7fd21\uff1a\u8b93\u677f\u5b50\u4e0a\u7684LED\u6bcf\u79d2\u9583\u720d\u4e00\u6b21\" width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/4IcGwx63wZY?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<p>\u5982\u679c\u4f60\u4f7f\u7528\u7684\u662fS4A\uff08Scratch for Arduino\uff09\u7de8\u8f2f\u5668\u7684\u8a71\uff0c\u5247\u7a0b\u5f0f\u7a4d\u6728\u7684\u5167\u5bb9\u5982\u4e0b\uff1a<\/p>\n<p><a href=\"https:\/\/104.es\/wp-content\/uploads\/2017\/12\/2018-03-21_06-48-47.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1952 aligncenter\" src=\"https:\/\/104.es\/wp-content\/uploads\/2017\/12\/2018-03-21_06-48-47.png\" alt=\"\" width=\"229\" height=\"207\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728Arduino IDE\u7684\u7a0b\u9806\u5229\u5b89\u88dd\u5b8c\u7562\u4e4b\u5f8c\uff0c\u628a Arduino\u677f\u5b50\u9023\u4e0a\u96fb\u8166\u7684\u7b2c\u4e00\u500b\u6e2c\u8a66\u7a0b\u5f0f\uff0c\u5c31\u662f\u628a\u677f\u5b50\u4e0a\u9023\u63a5\u5728\u7b2c13\u652f\u8173\u4e0a\u7684\u90a3\u9846\u5c0f\u5c0f\u7684LED\u9ede\u4eae\uff0c\u4e26\u8b93\u5b83\u9583\u720d\uff0c\u4ee5\u4fbf\u6e2c\u8a66\u6240\u6709\u7684\u9023\u63a5\u662f\u5426\u90fd\u6b63\u5e38\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3],"tags":[112],"class_list":["post-1797","post","type-post","status-publish","format-standard","hentry","category-arduino","tag-arduino-code-examples"],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/posts\/1797","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/comments?post=1797"}],"version-history":[{"count":0,"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/posts\/1797\/revisions"}],"wp:attachment":[{"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/media?parent=1797"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/categories?post=1797"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/tags?post=1797"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}