{"id":5758,"date":"2016-01-10T23:38:20","date_gmt":"2016-01-10T14:38:20","guid":{"rendered":"http:\/\/umezawa.dyndns.info\/wordpress\/?p=5758"},"modified":"2016-01-11T00:00:46","modified_gmt":"2016-01-10T15:00:46","slug":"arduino-%e3%81%84%e3%81%98%e3%82%8a","status":"publish","type":"post","link":"http:\/\/umezawa.dyndns.info\/wordpress\/?p=5758","title":{"rendered":"Arduino \u3044\u3058\u308a"},"content":{"rendered":"<p>\u6c34\u66dc\u306b Arduino UNO R3 \u3092\u8cb7\u3063\u3066\u304d\u307e\u3057\u305f\u3002\u8cb7\u3063\u3066\u304b\u3089\u6c17\u3065\u3044\u305f\u3093\u3067\u3059\u3051\u3069\u3053\u308c SMD edition \u306e\u65b9\u3001\u3064\u307e\u308a\u30de\u30a4\u30b3\u30f3\u30c1\u30c3\u30d7\u304c DIP \u30d1\u30c3\u30b1\u30fc\u30b8\u3067\u306f\u306a\u304f TQFP \u30d1\u30c3\u30b1\u30fc\u30b8\u306a\u3093\u3067\u3059\u306a\u3002\u307e\u3042\u4ed8\u3051\u305f\u308a\u5916\u3057\u305f\u308a\u3059\u308b\u4e88\u5b9a\u306f\u306a\u3044\u3093\u3067\u5225\u306b\u3044\u3044\u3093\u3067\u3059\u304c\u3002<\/p>\n<p><!--more--><\/p>\n<p>\u305d\u308c\u306f\u3068\u3082\u304b\u304f\u3001LED \u30c1\u30ab\u30c1\u30ab\u3092\u4f5c\u3063\u3066\u307f\u305f\u308a\u3001<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/umezawa.dyndns.info\/wordpress\/wp-content\/uploads\/2016\/01\/arduino-led-chikachika.jpg\" alt=\"Arduino \u3067 LED\u30c1\u30ab\u30c1\u30ab\" width=\"640\" height=\"480\" class=\"alignnone size-full wp-image-5759\" \/><\/p>\n<p>\u30b7\u30ea\u30a2\u30eb\u51fa\u529b\u3092\u30b7\u30d5\u30c8\u30ec\u30b8\u30b9\u30bf\u3067\u53d7\u3051\u30667\u30bb\u30b0LED\u3092\u70b9\u706f\u3055\u305b\u3064\u3064\u5727\u96fb\u30b9\u30d4\u30fc\u30ab\u30fc\u3092\u9cf4\u3089\u3057\u3066\u307f\u305f\u308a\u3057\u3066\u307e\u3057\u305f\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/umezawa.dyndns.info\/wordpress\/wp-content\/uploads\/2016\/01\/arduino-7seg-countup.jpg\" alt=\"Arduino \u3067 7\u30bb\u30b0\u30ab\u30a6\u30f3\u30c8\u30a2\u30c3\u30d7\" width=\"640\" height=\"480\" class=\"alignnone size-full wp-image-5760\" \/><\/p>\n<p>\u9cf4\u3089\u3059\u65b9\u306e\u30b9\u30b1\u30c3\u30c1\uff08\u30d7\u30ed\u30b0\u30e9\u30e0\uff09\u3092\u66f8\u304d\u8fbc\u3093\u3060\u3060\u3051\u3067\u30d5\u30e9\u30c3\u30b7\u30e5\u30e1\u30e2\u30ea\u3092 32KB \u306e\u3046\u3061 8% \u3082\u4f7f\u3063\u3066\u3044\u3066\u3053\u306e\u5148\u601d\u3044\u3084\u3089\u308c\u307e\u3059\u30028% \u306e\u3046\u3061\u534a\u5206\u306f tone \u95a2\u6570\uff08\u97f3\u3092\u9cf4\u3089\u3059\u305f\u3081\u306e\u95a2\u6570\uff09\u306e\u3088\u3046\u306a\u306e\u3067\u3059\u304c\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u3053\u3093\u306a\u30b9\u30b1\u30c3\u30c1\u3002<\/p>\n<blockquote>\n<pre>void setup() {\r\n  pinMode(2, OUTPUT);\r\n  pinMode(3, OUTPUT);\r\n  pinMode(4, OUTPUT);\r\n}\r\n\r\nint segs[10] = {\r\n  0x3f, 0x06, 0x5b, 0x4f,\r\n  0x66, 0x6d, 0x7d, 0x27,\r\n  0x7f, 0x6f, \r\n};\r\n\r\nvoid loop() {\r\n  int seg;\r\n\r\n  seg = segs[(millis() % 7000) \/ 700];\r\n  if (millis() % 1000 &lt; 300) {\r\n    seg |= 0x80;\r\n    if (millis() % 5000 &lt; 4000)\r\n      tone(4, 440);\r\n    else\r\n      tone(4, 880);\r\n  } else {\r\n    noTone(4);\r\n  }\r\n\r\n  shiftOut(2, 3, MSBFIRST, ~seg);\r\n  delay(25);\r\n}<\/pre>\n<\/blockquote>\n<p>\u6b21\u306f\u5165\u529b\u304b\u306a\u2026<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6c34\u66dc\u306b Arduino UNO R3 \u3092\u8cb7\u3063\u3066\u304d\u307e\u3057\u305f\u3002\u8cb7\u3063\u3066\u304b\u3089\u6c17\u3065\u3044\u305f\u3093\u3067\u3059\u3051\u3069\u3053\u308c SMD edition \u306e\u65b9\u3001\u3064\u307e\u308a\u30de\u30a4\u30b3\u30f3\u30c1\u30c3\u30d7\u304c DIP \u30d1\u30c3\u30b1\u30fc\u30b8\u3067\u306f\u306a\u304f TQFP \u30d1\u30c3\u30b1\u30fc\u30b8\u306a\u3093\u3067\u3059\u306a\u3002\u307e\u3042\u4ed8\u3051\u305f\u308a\u5916\u3057 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27],"tags":[],"class_list":["post-5758","post","type-post","status-publish","format-standard","hentry","category-technology"],"_links":{"self":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/5758","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5758"}],"version-history":[{"count":5,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/5758\/revisions"}],"predecessor-version":[{"id":5765,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/5758\/revisions\/5765"}],"wp:attachment":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5758"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5758"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5758"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}