{"id":2347,"date":"2016-03-05T22:33:01","date_gmt":"2016-03-05T13:33:01","guid":{"rendered":"http:\/\/mirror.boy.jp\/?p=2347"},"modified":"2016-03-06T00:33:00","modified_gmt":"2016-03-05T15:33:00","slug":"arduino%e3%83%95%e3%82%a1%e3%83%bc%e3%83%a0%e3%81%aeesp-wroom-02esp8266%e9%96%8b%e7%99%ba%e3%83%9c%e3%83%bc%e3%83%89i2c-pca9622dr%e3%80%80","status":"publish","type":"post","link":"https:\/\/mirror.boy.jp\/?p=2347","title":{"rendered":"Arduino\u30d5\u30a1\u30fc\u30e0\u306eESP-WROOM-02(ESP8266)\u958b\u767a\u30dc\u30fc\u30c9\u3067I2C\u901a\u4fe1"},"content":{"rendered":"<p><a onclick=\"javascript:pageTracker._trackPageview('\/downloads\/wp-content\/uploads\/2016\/03\/IMG_9972.jpg');\"  href=\"http:\/\/mirror.boy.jp\/wp-content\/uploads\/2016\/03\/IMG_9972.jpg\" rel=\"attachment wp-att-2359\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-2359\" src=\"http:\/\/mirror.boy.jp\/wp-content\/uploads\/2016\/03\/IMG_9972-1024x575.jpg\" alt=\"IMG_9972\" width=\"1024\" height=\"575\" srcset=\"https:\/\/mirror.boy.jp\/wp-content\/uploads\/2016\/03\/IMG_9972-1024x575.jpg 1024w, https:\/\/mirror.boy.jp\/wp-content\/uploads\/2016\/03\/IMG_9972-400x225.jpg 400w, https:\/\/mirror.boy.jp\/wp-content\/uploads\/2016\/03\/IMG_9972-768x431.jpg 768w, https:\/\/mirror.boy.jp\/wp-content\/uploads\/2016\/03\/IMG_9972-304x171.jpg 304w, https:\/\/mirror.boy.jp\/wp-content\/uploads\/2016\/03\/IMG_9972.jpg 1600w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><br \/>\n<a onclick=\"javascript:pageTracker._trackPageview('\/outgoing\/trac.switch-science.com\/wiki\/esp_dev_arduino_ide');\"  href=\"http:\/\/trac.switch-science.com\/wiki\/esp_dev_arduino_ide\">ESP-WROOM-02\u958b\u767a\u30dc\u30fc\u30c9\u3092Arduino\u30d5\u30a1\u30fc\u30e0\u306b\u3057\u3066\u904a\u3093\u3067\u3044\u308b<\/a>\u306e\u3067\u3059\u304c\u3001Wire\u30e9\u30a4\u30d6\u30e9\u30ea\uff08I2C\uff09\u306b\u4f7f\u3046\u30d4\u30f3\u304c\u5206\u304b\u3089\u306a\u304b\u3063\u305f\u306e\u3067\u30e1\u30e2<\/p>\n<ul>\n<li>SCL &#8211; IO5<\/li>\n<li>SDA &#8211; IO4<\/li>\n<\/ul>\n<h3>I2C\u901a\u4fe1\u30c6\u30b9\u30c8<\/h3>\n<p><iframe loading=\"lazy\" width=\"600\" height=\"600\" src=\"https:\/\/vine.co\/v\/iXeWpg1KDxB\/embed\/simple?audio=1\" frameborder=\"0\"><\/iframe><script src=\"https:\/\/platform.vine.co\/static\/scripts\/embed.js\"><\/script><br \/>\nI2C\u901a\u4fe1\u306e\u30c6\u30b9\u30c8\u3002\u4e0a\u8a18\u306eVine\u52d5\u753b\u3067\u70b9\u706f\u3057\u3066\u3044\u308b\u306e\u306f\u3001<a onclick=\"javascript:pageTracker._trackPageview('\/outgoing\/trac.switch-science.com\/wiki\/PCA9622DR');\"  href=\"http:\/\/trac.switch-science.com\/wiki\/PCA9622DR\">PCA9622DR\u642d\u8f09\u3057\u305fLED\u30e2\u30b8\u30e5\u30fc\u30eb<\/a>\u3002<a onclick=\"javascript:pageTracker._trackPageview('\/outgoing\/trac.switch-science.com\/wiki\/PCA9622DR');\"  href=\"http:\/\/trac.switch-science.com\/wiki\/PCA9622DR\">Arduino\u7528\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9<\/a>\u307e\u307e\u3067\u52d5\u304d\u307e\u3057\u305f\u3002<\/p>\n<h3>\u8ffd\u8a18<\/h3>\n<p><a onclick=\"javascript:pageTracker._trackPageview('\/outgoing\/esp8266.github.io\/Arduino\/versions\/2.1.0-rc2\/doc\/reference.html');\"  href=\"http:\/\/esp8266.github.io\/Arduino\/versions\/2.1.0-rc2\/doc\/reference.html\">Arduino ESP8266\u306e\u30d4\u30f3\u914d\u5217<\/a><\/p>\n<blockquote><p><a onclick=\"javascript:pageTracker._trackPageview('\/outgoing\/esp8266.github.io\/Arduino\/versions\/2.1.0-rc2\/doc\/libraries.html');\"  href=\"http:\/\/esp8266.github.io\/Arduino\/versions\/2.1.0-rc2\/doc\/libraries.html\">Wire library currently supports master mode up to approximately 450KHz. Before using I2C, pins for SDA and SCL need to be set by calling\u00a0<code>Wire.begin(int sda, int scl)<\/code>, i.e.\u00a0<code>Wire.begin(0, 2)<\/code>\u00a0on ESP-01, else they default to pins 4(SDA) and 5(SCL).<\/a><\/p><\/blockquote>\n<p>I2C\u306e\u30d4\u30f3\u8a2d\u5b9a\u306f\u3001\u5909\u3048\u3089\u308c\u308b\u305d\u3046\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>ESP-WROOM-02\u958b\u767a\u30dc\u30fc\u30c9\u3092Arduino\u30d5\u30a1\u30fc\u30e0\u306b\u3057\u3066\u904a\u3093\u3067\u3044\u308b\u306e\u3067\u3059\u304c\u3001Wire\u30e9\u30a4\u30d6\u30e9\u30ea\uff08I2C\uff09\u306b\u4f7f\u3046\u30d4\u30f3\u304c\u5206\u304b\u3089\u306a\u304b\u3063\u305f\u306e\u3067\u30e1\u30e2 SCL &#8211; IO5 SDA &#8211; IO4 I2C\u901a &hellip; <a href=\"https:\/\/mirror.boy.jp\/?p=2347\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">Arduino\u30d5\u30a1\u30fc\u30e0\u306eESP-WROOM-02(ESP8266)\u958b\u767a\u30dc\u30fc\u30c9\u3067I2C\u901a\u4fe1<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[49,8,108,107],"tags":[],"_links":{"self":[{"href":"https:\/\/mirror.boy.jp\/index.php?rest_route=\/wp\/v2\/posts\/2347"}],"collection":[{"href":"https:\/\/mirror.boy.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mirror.boy.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mirror.boy.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mirror.boy.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2347"}],"version-history":[{"count":13,"href":"https:\/\/mirror.boy.jp\/index.php?rest_route=\/wp\/v2\/posts\/2347\/revisions"}],"predecessor-version":[{"id":2364,"href":"https:\/\/mirror.boy.jp\/index.php?rest_route=\/wp\/v2\/posts\/2347\/revisions\/2364"}],"wp:attachment":[{"href":"https:\/\/mirror.boy.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2347"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mirror.boy.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2347"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mirror.boy.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2347"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}