{"id":402,"date":"2018-03-05T00:32:17","date_gmt":"2018-03-04T15:32:17","guid":{"rendered":"https:\/\/windabaft.co.jp\/blog_ceo\/?p=402"},"modified":"2018-03-19T20:22:09","modified_gmt":"2018-03-19T11:22:09","slug":"arduino%e3%81%a7i2c%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e6%a0%bc%e5%ae%89lcd%e3%81%ae1602a%e3%81%ab%e6%96%87%e5%ad%97%e3%82%92%e8%a1%a8%e7%a4%ba%e3%81%95%e3%81%9b%e3%82%88%e3%81%86%ef%bc%81","status":"publish","type":"post","link":"https:\/\/windabaft.co.jp\/blog_ceo\/?p=402","title":{"rendered":"Arduino\u3067I2C\u3092\u4f7f\u3063\u3066\u683c\u5b89LCD\u306e1602\u306b\u6587\u5b57\u3092\u8868\u793a\u3055\u305b\u3088\u3046\uff01"},"content":{"rendered":"<p>\u5199\u771f\u5de6\u306e\u683c\u5b89\u6db2\u6676\u30e2\u30b8\u30e5\u30fc\u30eb1602\u306b<br \/>\n\u5199\u771f\u53f3\u306eI2C \u30a2\u30c0\u30d7\u30bf\u30fc\u3092\u5229\u7528\u3057\u3066\u3001\u7c21\u5358\u306b\u6587\u5b57\u3092\u8868\u793a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/windabaft.co.jp\/blog_ceo\/wp-content\/uploads\/2018\/03\/1602A-i2c1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-407\" src=\"https:\/\/windabaft.co.jp\/blog_ceo\/wp-content\/uploads\/2018\/03\/1602A-i2c1-300x300.jpg\" alt=\"\" width=\"300\" height=\"300\" srcset=\"https:\/\/windabaft.co.jp\/blog_ceo\/wp-content\/uploads\/2018\/03\/1602A-i2c1-300x300.jpg 300w, https:\/\/windabaft.co.jp\/blog_ceo\/wp-content\/uploads\/2018\/03\/1602A-i2c1-150x150.jpg 150w, https:\/\/windabaft.co.jp\/blog_ceo\/wp-content\/uploads\/2018\/03\/1602A-i2c1-768x768.jpg 768w, https:\/\/windabaft.co.jp\/blog_ceo\/wp-content\/uploads\/2018\/03\/1602A-i2c1.jpg 1000w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>LCD\u306bI2C\u30c9\u30e9\u30a4\u30d0\u3092\u5b9f\u88c5\uff08\u8981\u30cf\u30f3\u30c0\u4ed8\uff09<\/p>\n<p><a href=\"https:\/\/windabaft.co.jp\/blog_ceo\/wp-content\/uploads\/2018\/03\/1602A-i2c2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-406\" src=\"https:\/\/windabaft.co.jp\/blog_ceo\/wp-content\/uploads\/2018\/03\/1602A-i2c2-300x152.jpg\" alt=\"\" width=\"300\" height=\"152\" srcset=\"https:\/\/windabaft.co.jp\/blog_ceo\/wp-content\/uploads\/2018\/03\/1602A-i2c2-300x152.jpg 300w, https:\/\/windabaft.co.jp\/blog_ceo\/wp-content\/uploads\/2018\/03\/1602A-i2c2-768x389.jpg 768w, https:\/\/windabaft.co.jp\/blog_ceo\/wp-content\/uploads\/2018\/03\/1602A-i2c2.jpg 930w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u4e0b\u8a18\u306e\u3088\u3046\u306bI2C\u30e2\u30b8\u30e5\u30fc\u30eb\u3068Arduino UNO\u3092\u7e4b\u3050<br \/>\nI2C\u30e2\u30b8\u30e5\u30fc\u30eb \u2192 Arduino UNO<br \/>\nGND \u2192 GND<br \/>\nVCC \u2192 5V<br \/>\nSDA \u2192 A4<br \/>\nSCL \u2192 A5<\/p>\n<p>\u307e\u305a\u306f\u3001LiquidCrystal_I2C \u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u53d6\u308a\u8fbc\u307f\u3002<\/p>\n<p><a href=\"https:\/\/github.com\/marcoschwartz\/LiquidCrystal_I2C\" target=\"_blank\" rel=\"noopener\">LiquidCrystal_I2C \u30e9\u30a4\u30d6\u30e9\u30ea<\/a><\/p>\n<p>\u30b9\u30b1\u30c3\u30c1\u306f\u4e0b\u8a18<\/p>\n<pre class=\"lang:default decode:true \">#include &lt;LiquidCrystal_I2C.h&gt;\r\n\r\nLiquidCrystal_I2C lcd(0x27,16,2);\r\n\r\nvoid setup() {\r\n  lcd.init(); \r\n  lcd.backlight();\r\n  lcd.setCursor(0, 0);\r\n  lcd.print(\"Hello, world!!\");\r\n}\r\n\r\nvoid loop(){\r\n}<\/pre>\n<p>\u3069\u3046\u3067\u3057\u3087\u3046\u304b\uff1f\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u304b\uff1f<\/p>\n<p>\u753b\u9762\u304c\u771f\u3063\u9752\u3067\u3042\u3063\u305f\u308a\u3001\u4f55\u3082\u6620\u3089\u306a\u3044\u5834\u5408\u306b\u306f\u3001\u30e2\u30b8\u30e5\u30fc\u30eb\u88cf\u9762\u306e\u53ef\u5909\u62b5\u6297\u304cLCD\u30b3\u30f3\u30c8\u30e9\u30b9\u30c8\u8abf\u6574\u30c4\u30de\u30df<br \/>\n\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u56de\u3057\u3066\u8abf\u6574\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u30e2\u30b8\u30e5\u30fc\u30eb\u88cf\u9762\u306eA0, A1, A2\u306f\u30cf\u30f3\u30c0\u30d6\u30ea\u30c3\u30b8\u306e\u7d44\u307f\u5408\u308f\u305b\u3067\u30a2\u30c9\u30ec\u30b9\u3092\u5909\u66f4\u3067\u304d\u307e\u3059\u3002<br \/>\n1\u500b\u3082\u534a\u7530\u30d6\u30ea\u30c3\u30b8\u304c\u7121\u3044\u300c\u5168\u3066\u30aa\u30fc\u30d7\u30f3\u300d\u306e\u72b6\u614b\u3067\u306f\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e<br \/>\n\u300c0x27\u300d<br \/>\n\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>LCD\u3082I2C\u30e2\u30b8\u30e5\u30fc\u30eb\u3082150\u5186\u304f\u3089\u3044\u3067\u624b\u306b\u5165\u308b\u306e\u3067\u3001<\/p>\n<p>\u7d04300\u5186\u7a0b\u5ea6\u3067Arduino\u306b\u7c21\u5358\u306b\u6db2\u6676\u8868\u793a\u3092\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5199\u771f\u5de6\u306e\u683c\u5b89\u6db2\u6676\u30e2\u30b8\u30e5\u30fc\u30eb1602\u306b \u5199\u771f\u53f3\u306eI2C \u30a2\u30c0\u30d7\u30bf\u30fc\u3092\u5229\u7528\u3057\u3066\u3001\u7c21\u5358\u306b\u6587\u5b57\u3092\u8868\u793a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 LCD\u306bI2C\u30c9\u30e9\u30a4\u30d0\u3092\u5b9f\u88c5\uff08\u8981\u30cf\u30f3\u30c0\u4ed8\uff09 \u4e0b\u8a18\u306e\u3088\u3046\u306bI2C\u30e2\u30b8\u30e5\u30fc\u30eb\u3068Arduino UNO\u3092\u7e4b\u3050  &hellip; <a href=\"https:\/\/windabaft.co.jp\/blog_ceo\/?p=402\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">Arduino\u3067I2C\u3092\u4f7f\u3063\u3066\u683c\u5b89LCD\u306e1602\u306b\u6587\u5b57\u3092\u8868\u793a\u3055\u305b\u3088\u3046\uff01<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":406,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[17],"tags":[],"class_list":["post-402","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-arduino"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/windabaft.co.jp\/blog_ceo\/index.php?rest_route=\/wp\/v2\/posts\/402","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/windabaft.co.jp\/blog_ceo\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/windabaft.co.jp\/blog_ceo\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/windabaft.co.jp\/blog_ceo\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/windabaft.co.jp\/blog_ceo\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=402"}],"version-history":[{"count":6,"href":"https:\/\/windabaft.co.jp\/blog_ceo\/index.php?rest_route=\/wp\/v2\/posts\/402\/revisions"}],"predecessor-version":[{"id":410,"href":"https:\/\/windabaft.co.jp\/blog_ceo\/index.php?rest_route=\/wp\/v2\/posts\/402\/revisions\/410"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/windabaft.co.jp\/blog_ceo\/index.php?rest_route=\/wp\/v2\/media\/406"}],"wp:attachment":[{"href":"https:\/\/windabaft.co.jp\/blog_ceo\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=402"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/windabaft.co.jp\/blog_ceo\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=402"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/windabaft.co.jp\/blog_ceo\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=402"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}