{"id":3512,"date":"2020-01-22T05:00:55","date_gmt":"2020-01-21T20:00:55","guid":{"rendered":"https:\/\/www.chihayafuru.jp\/tech\/?p=3512"},"modified":"2020-01-22T18:44:38","modified_gmt":"2020-01-22T09:44:38","slug":"raspi-i2c-tools","status":"publish","type":"post","link":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/archives\/3512","title":{"rendered":"[RasPi] i2c-tools"},"content":{"rendered":"<h3>1. I2C\u30c7\u30d0\u30a4\u30b9\u691c\u51fa\u30b3\u30de\u30f3\u30c9 i2cdetect<\/h3>\n<h4>1.1. \u5b9f\u884c\u4f8b<\/h4>\n<pre class=\"lang:sh highlight:0 decode:true \" >$ i2cdetect -y 1\r\n     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f\r\n00:          -- -- -- -- -- -- -- -- -- -- -- -- --\r\n10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --\r\n20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --\r\n30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --\r\n40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --\r\n50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --\r\n60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --\r\n70: 70 -- -- -- -- -- 76 77<\/pre>\n<h4>1.2. \u5f15\u6570<\/h4>\n<ul>\n<li><code>-y<\/code> : \u975e\u5bfe\u8a71\u30e2\u30fc\u30c9 (Disable interactive mode.)<\/li>\n<li><code>1<\/code> : \u30d0\u30b9 i2c-1<\/li>\n<\/ul>\n<p><!--more--><\/p>\n<p>&nbsp;<\/p>\n<h3>2. I2C\u30c7\u30d0\u30a4\u30b9\u8a3a\u65ad\u30b3\u30de\u30f3\u30c9 i2cdump<\/h3>\n<h4>2.1. \u5b9f\u884c\u4f8b<\/h4>\n<pre class=\"lang:sh highlight:0 decode:true \" >$ i2cdump -y 1 0x76\r\nNo size specified (using byte-data access)\r\n     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f    0123456789abcdef\r\n00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................\r\n10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................\r\n20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................\r\n30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................\r\n40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................\r\n50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................\r\n60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................\r\n70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................\r\n80: 86 91 89 73 42 05 f0 06 03 6d f9 64 32 00 02 93    ???sB????m?d2.??\r\n90: 0c d5 d0 0b 57 1a ff ff f9 ff ac 26 0a d8 bd 10    ????W?..?.?&????\r\na0: 00 4b 70 00 00 00 00 00 00 00 00 00 33 00 00 c0    .Kp.........3..?\r\nb0: 00 54 00 00 00 00 60 02 00 01 ff ff 1f 60 03 00    .T....`?.?..?`?.\r\nc0: 00 00 00 ff 00 00 00 00 00 00 00 00 00 00 00 00    ................\r\nd0: 60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    `...............\r\ne0: 00 63 01 00 15 00 00 1e d0 41 ff ff ff ff ff ff    .c?.?..??A......\r\nf0: ff 00 00 00 00 00 00 80 00 00 80 00 00 80 00 80    .......?..?..?.?<\/pre>\n<h4>2.2. \u5f15\u6570<\/h4>\n<ul>\n<li><code>-y<\/code> : \u975e\u5bfe\u8a71\u30e2\u30fc\u30c9 (Disable interactive mode.)<\/li>\n<li><code>1<\/code> : \u30d0\u30b9 i2c-1<\/li>\n<li><code>0x76<\/code> : I2C\u30a2\u30c9\u30ec\u30b9 0x76 \u756a\u5730<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h3>Debian manpage<\/h3>\n<ul>\n<li><a href=\"https:\/\/manpages.debian.org\/testing\/i2c-tools\/index.html\">https:\/\/manpages.debian.org\/testing\/i2c-tools\/index.html<\/a><\/li>\n<p><\/u><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. I2C\u30c7\u30d0\u30a4\u30b9\u691c\u51fa\u30b3\u30de\u30f3\u30c9 i2cdetect 1.1. \u5b9f\u884c\u4f8b $ i2cdetect -y 1 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: &#8212; &#8212; &#8212; &#8212; &#8212; &#8212; &#8212;  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[86],"class_list":["post-3512","post","type-post","status-publish","format-standard","hentry","category-memo","tag-raspi"],"_links":{"self":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/3512","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/comments?post=3512"}],"version-history":[{"count":8,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/3512\/revisions"}],"predecessor-version":[{"id":3521,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/3512\/revisions\/3521"}],"wp:attachment":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/media?parent=3512"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/categories?post=3512"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/tags?post=3512"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}