{"id":771,"date":"2019-11-04T13:55:18","date_gmt":"2019-11-04T04:55:18","guid":{"rendered":"https:\/\/dalomo.net\/blog\/?p=771"},"modified":"2019-11-04T13:55:18","modified_gmt":"2019-11-04T04:55:18","slug":"%e3%81%a1%e3%81%a3%e3%81%a1%e3%82%83%e3%81%84arduino%e4%ba%92%e6%8f%9b%e5%93%81%e8%b2%b7%e3%81%a3%e3%81%9f","status":"publish","type":"post","link":"https:\/\/dalomo.net\/blog\/2019\/11\/04\/771\/","title":{"rendered":"\u3061\u3063\u3061\u3083\u3044Arduino\u4e92\u63db\u54c1\u8cb7\u3063\u305f"},"content":{"rendered":"<h1>Arduino Leonardo\u4e92\u63db\u54c1<\/h1>\n<p><a href=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/11\/arduino.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-772\" src=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/11\/arduino-300x276.png\" alt=\"\" width=\"300\" height=\"276\" srcset=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/11\/arduino-300x276.png 300w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/11\/arduino-768x707.png 768w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/11\/arduino.png 1000w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u6b63\u5f0f\u540d\u79f0\u306a\u306e\u304b\u3069\u3046\u304b\u5206\u304b\u3089\u3093\u3051\u3069\u3001ebay\u3067\u306f\u5de6\u304b\u3089\u3001SS Micro\u3001CJMCU\u3001DM Micro(\u3082\u3057\u304f\u306fBeetle)\u3068\u547c\u79f0\u3055\u308c\u3066\u308b\u30021\u500b500\u5186\u3050\u3089\u3044\u3002Arduino Leonardo\u4e92\u63db\u54c1\u3067\u30c1\u30c3\u30d7\u306b\u306fAtmega32U4\u3063\u3066\u3044\u3046\u306e\u304c\u4f7f\u308f\u308c\u3066\u308b\u307f\u305f\u3044\u3002\u53f3\u306eDM Micro\u306b\u306fURL\u304c\u30d7\u30ea\u30f3\u30c8\u3055\u308c\u3066\u3066\u3001\u516c\u5f0f\u306e\u8ca9\u58f2\u30b5\u30a4\u30c8\u304c\u3042\u308b\u3002<\/p>\n<p><a href=\"https:\/\/www.diymore.cc\/collections\/hot-sale\/products\/diymore-beetle-badusb-micro-atmega32u4-au-development-expansion-module-board-for-arduino-leonardo-r3-5v-i2c\">https:\/\/www.diymore.cc\/collections\/hot-sale\/products\/diymore-beetle-badusb-micro-atmega32u4-au-development-expansion-module-board-for-arduino-leonardo-r3-5v-i2c<\/a><\/p>\n<p>Bad USB\u3063\u3066\u306a\u3093\u3060\u308d?\u3068\u601d\u3063\u3066\u8abf\u3079\u3066\u307f\u305f\u3089\u3001USB\u30e1\u30e2\u30ea\u306b\u64ec\u614b\u3057\u3066\u52dd\u624b\u306b\u30d7\u30ed\u30b0\u30e9\u30e0\u8d70\u3089\u305b\u308b\u307f\u305f\u3044\u306a\u4f7f\u3044\u65b9\u3082\u3067\u304d\u308b\u307f\u305f\u3044\u306d\u3002\u307e\u3041\u305d\u3093\u306a\u3053\u3068\u306f\u3057\u306a\u3044\u304b\u3089\u3044\u3044\u3068\u3057\u3066\u3002Arduino Micro\u3084Nano\u3088\u308a\u5c0f\u3055\u304f\u3066\u304b\u308f\u3044\u3044\u3002\u8a66\u3057\u306bL\u30c1\u30ab\u3057\u3066\u307f\u308b\u3002<\/p>\n<h2>L\u30c1\u30ab<\/h2>\n<p>DM Micro\u304c\u3001\u307e\u3060\u88fd\u54c1\u3068\u3057\u3066\u306e\u4f53\u3092\u6210\u3057\u3066\u308b\u6c17\u304c\u3059\u308b\u306e\u3067\u305d\u308c\u3092\u4f7f\u3046\u3053\u3068\u306b\u3057\u305f\u3002LED\u306f\u57fa\u677f\u4e0a\u306b\u3042\u308b\u307f\u305f\u3044\u306a\u306e\u3067\u3001\u305d\u308c\u304c\u5149\u308b\u3002<\/p>\n<h3>\u63a5\u7d9a<\/h3>\n<p><a href=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/11\/arduino-usb.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-774\" src=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/11\/arduino-usb-300x133.png\" alt=\"\" width=\"300\" height=\"133\" srcset=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/11\/arduino-usb-300x133.png 300w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/11\/arduino-usb-768x339.png 768w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/11\/arduino-usb.png 1000w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u3053\u3093\u306a\u3002PC\u3068\u63a5\u7d9a\u3059\u308b\u3068\u3001\u306f\u3058\u3081\u304b\u3089Blink\u304c\u66f8\u304d\u8fbc\u307e\u308c\u3066\u308b\u3089\u3057\u304f\u70b9\u6ec5\u3057\u305f\u3002<\/p>\n<h3>Arduino IDE\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p><a href=\"https:\/\/www.arduino.cc\/en\/main\/software\">https:\/\/www.arduino.cc\/en\/main\/software<\/a><\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3089\u30c4\u30fc\u30eb\u2192\u30dc\u30fc\u30c9\u3092Arduino Leonardo\u306b\u3001\u30c4\u30fc\u30eb\u2192\u30b7\u30ea\u30a2\u30eb\u30dd\u30fc\u30c8\u3067\u3053\u308c\u3092\u6307\u5b9a\u3059\u308b\u3002<\/p>\n<h3>\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0<\/h3>\n<p>\u30d5\u30a1\u30a4\u30eb\u2192\u30b9\u30b1\u30c3\u30c1\u4f8b\u219201Basis\u2192Blink\u3092\u9078\u3076\u3002<\/p>\n<pre class=\"cpp\">\/*\r\n  Blink\r\n\r\n  Turns an LED on for one second, then off for one second, repeatedly.\r\n\r\n  Most Arduinos have an on-board LED you can control. On the UNO, MEGA and ZERO\r\n  it is attached to digital pin 13, on MKR1000 on pin 6. LED_BUILTIN is set to\r\n  the correct LED pin independent of which board is used.\r\n  If you want to know what pin the on-board LED is connected to on your Arduino\r\n  model, check the Technical Specs of your board at:\r\n  https:\/\/www.arduino.cc\/en\/Main\/Products\r\n\r\n  modified 8 May 2014\r\n  by Scott Fitzgerald\r\n  modified 2 Sep 2016\r\n  by Arturo Guadalupi\r\n  modified 8 Sep 2016\r\n  by Colby Newman\r\n\r\n  This example code is in the public domain.\r\n\r\n  http:\/\/www.arduino.cc\/en\/Tutorial\/Blink\r\n*\/\r\n\r\n\/\/ the setup function runs once when you press reset or power the board\r\nvoid setup() {\r\n  \/\/ initialize digital pin LED_BUILTIN as an output.\r\n  pinMode(LED_BUILTIN, OUTPUT);\r\n}\r\n\r\n\/\/ the loop function runs over and over again forever\r\nvoid loop() {\r\n  digitalWrite(LED_BUILTIN, HIGH);   \/\/ turn the LED on (HIGH is the voltage level)\r\n  delay(1000);                       \/\/ wait for a second\r\n  digitalWrite(LED_BUILTIN, LOW);    \/\/ turn the LED off by making the voltage LOW\r\n  delay(1000);                       \/\/ wait for a second\r\n}<\/pre>\n<p>\u3053\u3093\u306a\u3093\u304c\u8868\u793a\u3055\u308c\u308b\u3002\u5149\u308a\u65b9\u3092\u3061\u3087\u3063\u3068\u5909\u3048\u305f\u3044\u306e\u3067\u3001void loop()\u5185\u3092<\/p>\n<pre class=\"cpp\">void loop() {\r\n  int t = 5000;\r\n  for (int i = 0; i &lt;= 20; i++) { \r\n    digitalWrite(LED_BUILTIN, HIGH); \r\n    delay(t); \r\n    digitalWrite(LED_BUILTIN, LOW); \r\n    delay(t); \r\n    \r\n    if (t &gt; 50) {\r\n      t = t \/ 2;\r\n    };\r\n  }\r\n}<\/pre>\n<p>\u3053\u3093\u306a\u611f\u3058\u306b\u66f8\u304d\u63db\u3048\u3066\u307f\u305f\u3002\u305d\u3057\u305f\u3089\u3001\u30b9\u30b1\u30c3\u30c1\u2192\u30de\u30a4\u30b3\u30f3\u30dc\u30fc\u30c9\u306b\u66f8\u304d\u8fbc\u3080\u3063\u3066\u3059\u308b\u3068<\/p>\n<p><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/v-zeils0bZU\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p>\u3067\u3051\u305f!\u3059\u3052\u30fc\u3001\u3053\u3093\u306a\u3061\u3063\u3061\u3083\u3044\u306e\u306b\u3061\u3083\u3093\u3068\u52d5\u3044\u3066\u308b\u3002<\/p>\n<h2>\u53c2\u8003<\/h2>\n<p><a href=\"http:\/\/www.musashinodenpa.com\/arduino\/ref\/\">http:\/\/www.musashinodenpa.com\/arduino\/ref\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Arduino Leonardo\u4e92\u63db\u54c1 \u6b63\u5f0f\u540d\u79f0\u306a\u306e\u304b\u3069\u3046\u304b\u5206\u304b\u3089\u3093\u3051\u3069\u3001ebay\u3067\u306f\u5de6\u304b\u3089\u3001SS Micro\u3001CJMCU\u3001DM Micro(\u3082\u3057\u304f\u306fBeetle)\u3068\u547c\u79f0\u3055\u308c\u3066\u308b\u30021\u500b500\u5186\u3050\u3089\u3044\u3002Arduino Le &hellip; <a href=\"https:\/\/dalomo.net\/blog\/2019\/11\/04\/771\/\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":772,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[9],"tags":[69,70,78,72,73,71],"class_list":["post-771","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-9","tag-arduino","tag-atmega32u4","tag-bluetooth","tag-cjmcu","tag-dm-micro","tag-ss-micro"],"_links":{"self":[{"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/posts\/771","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/comments?post=771"}],"version-history":[{"count":3,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/posts\/771\/revisions"}],"predecessor-version":[{"id":776,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/posts\/771\/revisions\/776"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/media\/772"}],"wp:attachment":[{"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/media?parent=771"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/categories?post=771"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/tags?post=771"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}