{"id":202,"date":"2014-03-09T02:28:51","date_gmt":"2014-03-08T17:28:51","guid":{"rendered":"https:\/\/mimiu.net\/wp\/?p=202"},"modified":"2014-03-09T02:46:20","modified_gmt":"2014-03-08T17:46:20","slug":"intel-galileo-io%e3%82%a8%e3%82%ad%e3%82%b9%e3%83%91%e3%83%b3%e3%83%80%e3%81%a7%e6%b6%b2%e6%99%b6","status":"publish","type":"post","link":"https:\/\/mimiu.net\/wp\/?p=202","title":{"rendered":"Intel Galileo &#8212; I\/O\u30a8\u30ad\u30b9\u30d1\u30f3\u30c0\u3067\u6db2\u6676"},"content":{"rendered":"<figure id=\"attachment_203\" aria-describedby=\"caption-attachment-203\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/mimiu.net\/wp\/wp-content\/uploads\/2014\/03\/DSC03297.jpg\"><img loading=\"lazy\" class=\"size-medium wp-image-203\" alt=\"I\/O\u30a8\u30ad\u30b9\u30d1\u30f3\u30c0PCF8574\u3067\u6db2\u6676\u3092\u8868\u793a\u3059\u308b\" src=\"https:\/\/mimiu.net\/wp\/wp-content\/uploads\/2014\/03\/DSC03297-300x233.jpg\" width=\"300\" height=\"233\" srcset=\"https:\/\/mimiu.net\/wp\/wp-content\/uploads\/2014\/03\/DSC03297-300x233.jpg 300w, https:\/\/mimiu.net\/wp\/wp-content\/uploads\/2014\/03\/DSC03297.jpg 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-203\" class=\"wp-caption-text\">I\/O\u30a8\u30ad\u30b9\u30d1\u30f3\u30c0PCF8574\u3067\u6db2\u6676\u3092\u8868\u793a\u3059\u308b<\/figcaption><\/figure>\n<p><a title=\"Intel Galileo \u2014 \u6db2\u6676\u8868\u793a\" href=\"https:\/\/mimiu.net\/wp\/?p=191\">\u524d\u56de<\/a>Intel Galileo\u306eGPIO\u306f\u9045\u3044\u4e8b\u304c\u5206\u304b\u3063\u305f\u3002I\/O\u304c\u9045\u3044\u3068\u4f55\u304b\u3068\u4e0d\u4fbf\u306a\u306e\u3067I\/O\u30a8\u30af\u30b9\u30d1\u30f3\u30c0\u3092\u5229\u7528\u3057\u3066\u9ad8\u901f\u5316\u3057\u3066\u307f\u308b\u3002<\/p>\n<figure id=\"attachment_204\" aria-describedby=\"caption-attachment-204\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/mimiu.net\/wp\/wp-content\/uploads\/2014\/03\/pcf8574lcd.png\"><img loading=\"lazy\" class=\"size-medium wp-image-204\" alt=\"\u56de\u8def\u56f3\" src=\"https:\/\/mimiu.net\/wp\/wp-content\/uploads\/2014\/03\/pcf8574lcd-300x292.png\" width=\"300\" height=\"292\" srcset=\"https:\/\/mimiu.net\/wp\/wp-content\/uploads\/2014\/03\/pcf8574lcd-300x292.png 300w, https:\/\/mimiu.net\/wp\/wp-content\/uploads\/2014\/03\/pcf8574lcd.png 626w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-204\" class=\"wp-caption-text\">\u56de\u8def\u56f3<\/figcaption><\/figure>\n<p>aitendo\u306e<a href=\"http:\/\/www.aitendo.com\/product\/6344\" target=\"_blank\">GPIO\u30a8\u30ad\u30b9\u30d1\u30f3\u30c0\uff08I2C\uff09<\/a>\u306b\u8f09\u3063\u3066\u308b<a href=\"http:\/\/www.tij.co.jp\/product\/jp\/pcf8574\" target=\"_blank\">PCF8574<\/a>\u306f<a href=\"http:\/\/playground.arduino.cc\/\/Code\/LCDi2c\" target=\"_blank\">Arduino\u306e\u30e9\u30a4\u30d6\u30e9\u30ea<\/a>\u306b\u3082\u3042\u308b\u306e\u3067\u826f\u3055\u305d\u3046\u3002\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f<a href=\"http:\/\/www.xs4all.nl\/%7Ehmario\/arduino\/LiquidCrystal_I2C\/LiquidCrystal_I2C.zip\" target=\"_blank\" rel=\"nofollow\">LiquidCrystal_I2C.zip<\/a>\u3092\u5c55\u958b\u3057\u3066<\/p>\n<blockquote><p>arduino\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u2192libraries<\/p><\/blockquote>\n<p>\u306e\u4e2d\u306b\u914d\u7f6e\u3059\u308c\u3070\u3088\u3044\u3002<\/p>\n<p>\u30b9\u30b1\u30c3\u30c1<\/p>\n<pre>#include   &lt;Wire.h&gt;                \/\/I2C\u7528\r\n#include   &lt;LiquidCrystal_I2C.h&gt; \/\/I2C\u6db2\u6676\u7528\r\n\r\nLiquidCrystal_I2C lcd(0x20,8,2); \/\/ \u30a2\u30c9\u30ec\u30b90x20 8x2\u884c\r\n\r\nvoid setup()\r\n{\r\n  lcd.init();       \/\/ \u6db2\u6676\u521d\u671f\u5316\r\n  lcd.backlight();  \/\/ P7\u306bLED\u306eon\/off\u304c\u51fa\u529b\u3067\u304d\u308b\u3089\u3057\u3044\r\n}\r\n\r\nvoid loop()\r\n{\r\n    while(true){\r\n        lcd.clear();               \/\/\u753b\u9762\u6d88\u53bb\r\n        lcd.print(\"Hello,\");       \/\/\u8868\u793a\r\n        lcd.setCursor(2,1);        \/\/\u4f4d\u7f6e\r\n        lcd.print(\"world.\");       \/\/\u8868\u793a\r\n        for (int i=0; i&lt;5; i++){   \/\/\u70b9\u6ec5\r\n            lcd.noDisplay();       \/\/\u96a0\u3059\r\n            delay(200);            \/\/\u9045\u3089\u305b\u308b\r\n            lcd.display();         \/\/\u73fe\u3059\r\n            delay(200);\r\n        }\r\n    }\r\n}<\/pre>\n<p>\u5341\u5206\u306a\u901f\u3055\u306b\u306a\u3063\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u56deIntel Galileo\u306eGPIO\u306f\u9045\u3044\u4e8b\u304c\u5206\u304b\u3063\u305f\u3002I\/O\u304c\u9045\u3044\u3068\u4f55\u304b\u3068\u4e0d\u4fbf\u306a\u306e\u3067I\/O\u30a8\u30af\u30b9\u30d1\u30f3\u30c0\u3092\u5229\u7528\u3057\u3066\u9ad8\u901f\u5316\u3057\u3066\u307f\u308b\u3002 aitendo\u306eGPIO\u30a8\u30ad\u30b9\u30d1\u30f3\u30c0\uff08I2C\uff09\u306b\u8f09\u3063\u3066\u308bPCF8574\u306fArduin &hellip; <a href=\"https:\/\/mimiu.net\/wp\/?p=202\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">Intel Galileo &#8212; I\/O\u30a8\u30ad\u30b9\u30d1\u30f3\u30c0\u3067\u6db2\u6676<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[11,17],"_links":{"self":[{"href":"https:\/\/mimiu.net\/wp\/index.php?rest_route=\/wp\/v2\/posts\/202"}],"collection":[{"href":"https:\/\/mimiu.net\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mimiu.net\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mimiu.net\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mimiu.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=202"}],"version-history":[{"count":4,"href":"https:\/\/mimiu.net\/wp\/index.php?rest_route=\/wp\/v2\/posts\/202\/revisions"}],"predecessor-version":[{"id":208,"href":"https:\/\/mimiu.net\/wp\/index.php?rest_route=\/wp\/v2\/posts\/202\/revisions\/208"}],"wp:attachment":[{"href":"https:\/\/mimiu.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=202"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mimiu.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=202"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mimiu.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=202"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}