{"id":299,"date":"2015-05-17T15:46:41","date_gmt":"2015-05-17T06:46:41","guid":{"rendered":"http:\/\/arduino.mx55.com\/?page_id=299"},"modified":"2015-08-22T18:10:06","modified_gmt":"2015-08-22T09:10:06","slug":"%e3%83%9c%e3%83%aa%e3%83%a5%e3%83%bc%e3%83%a0%e3%81%a7led%e3%81%ae%e7%82%b9%e6%bb%85%e3%81%ae%e9%80%9f%e3%81%95%e3%82%92%e5%a4%89%e3%81%88%e3%82%8b","status":"publish","type":"page","link":"https:\/\/arduino.mx55.com\/?page_id=299","title":{"rendered":"\u30dc\u30ea\u30e5\u30fc\u30e0\u3067LED\u306e\u70b9\u6ec5\u306e\u901f\u3055\u3092\u5909\u3048\u308b"},"content":{"rendered":"<p><span style=\"color: #ff0000;\"><strong>\u3010Ver.1\u975e\u5bfe\u5fdc\u3011<\/strong><br \/>\nVer.2\u3068Arduino\u57fa\u790e\u5b66\u7fd2\u30b7\u30fc\u30eb\u30c9\u3067\u5229\u7528\u53ef\u80fd\u3067\u3059<\/span><\/p>\n<p><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/p4RxtzFTtJE\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p>D13\u306b\u63a5\u7d9a\u3057\u305f\uff2c\uff25\uff24\uff14\u306e\u70b9\u6ec5\u306e\u901f\u3055\u3092\u3001A0\u306b\u63a5\u7d9a\u3057\u305f\u30dc\u30ea\u30e5\u30fc\u30e0\u3067\u5909\u3048\u307e\u3059\u3002<br \/>\nA0\u304b\u3089\u306f\uff10\uff5e\uff11\uff10\uff12\uff13\u306e\u5024\u304c\u5f97\u3089\u308c\u307e\u3059\u3002\u3053\u306e\u5024\u3067\u5f85\u6a5f\u6642\u9593\u3092\u5909\u3048\u3066\u3001<br \/>\n\u3053\u308c\u306b\u3088\u308a\u3001\u70b9\u6ec5\u306e\u901f\u3055\u304c\u5909\u5316\u3057\u307e\u3059\u3002\u53f3\u306b\u56de\u3059\u3068\u96fb\u5727\u304c\u4e0a\u304c\u308b\u305f\u3081\u3001<br \/>\n\u70b9\u6ec5\u306f\u3086\u3063\u304f\u308a\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: cpp; title: ; notranslate\" title=\"\">\r\n\/\/ \u30dc\u30ea\u30e5\u30fc\u30e0\u3092\u56de\u3057\u3066\uff2c\uff25\uff24\u306e\u70b9\u6ec5\u306e\u901f\u3055\u3092\u5909\u3048\u308b\r\n\/\/ A0\u304b\u3089\u306e\u30a2\u30ca\u30ed\u30b0\u5165\u529b\u3092\u5229\u7528\u3059\u308b\r\n\/\/ A0\u304b\u3089\u306e\u5165\u529b\u5024\u306f\uff10\u304b\u3089\uff11\uff10\uff12\uff13\u3068\u306a\u308b\r\n\r\nint ledPin = 13;      \/\/\u6574\u6570\u578b\u306e\u5909\u6570\u5ba3\u8a00\r\nint analogPin = 0;\r\nint x;\r\n\r\nvoid setup() {\r\n  pinMode(ledPin, OUTPUT);   \/\/ \u30d4\u30f313\u3092\u51fa\u529b\u306b\u8a2d\u5b9a\r\n}\r\n\r\nvoid loop() {\r\n  x = analogRead(analogPin);    \/\/ \u30a2\u30ca\u30ed\u30b0\u30d4\u30f3\u3092\u8aad\u307f\u53d6\u308b\r\n  digitalWrite(ledPin, HIGH);   \/\/ LED\u3092\u30aa\u30f3\u306b\r\n  delay(x);\r\n  digitalWrite(ledPin, LOW);    \/\/ LED\u3092\u30aa\u30d5\u306b\r\n  delay(x);\r\n}\r\n\/\/\u3053\u3053\u307e\u3067\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u3010Ver.1\u975e\u5bfe\u5fdc\u3011 Ver.2\u3068Arduino\u57fa\u790e\u5b66\u7fd2\u30b7\u30fc\u30eb\u30c9\u3067\u5229\u7528\u53ef\u80fd\u3067\u3059 D13\u306b\u63a5\u7d9a\u3057\u305f\uff2c\uff25\uff24\uff14\u306e\u70b9\u6ec5\u306e\u901f\u3055\u3092\u3001A0\u306b\u63a5\u7d9a\u3057\u305f\u30dc\u30ea\u30e5\u30fc\u30e0\u3067\u5909\u3048\u307e\u3059\u3002 A0\u304b\u3089\u306f\uff10\uff5e\uff11\uff10\uff12\uff13\u306e\u5024\u304c\u5f97\u3089\u308c\u307e\u3059\u3002\u3053\u306e\u5024\u3067\u5f85\u6a5f\u6642\u9593\u3092\u5909\u3048 <a class=\"more-link\" href=\"https:\/\/arduino.mx55.com\/?page_id=299\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">  \u30dc\u30ea\u30e5\u30fc\u30e0\u3067LED\u306e\u70b9\u6ec5\u306e\u901f\u3055\u3092\u5909\u3048\u308b<\/span><span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":16,"menu_order":110,"comment_status":"open","ping_status":"open","template":"","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"class_list":["post-299","page","type-page","status-publish","hentry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/arduino.mx55.com\/index.php?rest_route=\/wp\/v2\/pages\/299","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/arduino.mx55.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/arduino.mx55.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/arduino.mx55.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/arduino.mx55.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=299"}],"version-history":[{"count":8,"href":"https:\/\/arduino.mx55.com\/index.php?rest_route=\/wp\/v2\/pages\/299\/revisions"}],"predecessor-version":[{"id":461,"href":"https:\/\/arduino.mx55.com\/index.php?rest_route=\/wp\/v2\/pages\/299\/revisions\/461"}],"up":[{"embeddable":true,"href":"https:\/\/arduino.mx55.com\/index.php?rest_route=\/wp\/v2\/pages\/16"}],"wp:attachment":[{"href":"https:\/\/arduino.mx55.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=299"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}