{"id":2236,"date":"2022-05-11T18:44:30","date_gmt":"2022-05-11T18:44:30","guid":{"rendered":"https:\/\/picockpit.com\/raspberry-pi\/?p=2236"},"modified":"2023-09-18T13:53:06","modified_gmt":"2023-09-18T13:53:06","slug":"i2c-the-inter-integrated-circuit-bus","status":"publish","type":"post","link":"https:\/\/picockpit.com\/raspberry-pi\/zh\/i2c-inter-integrated-circuit-bus\/","title":{"rendered":"I2C - \u96c6\u6210\u7535\u8def\u95f4\u603b\u7ebf"},"content":{"rendered":"<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/i2c-title-image-1024x576.png\" alt=\"\u6709\u5173 I2C \u7684\u4e00\u5207 \u6807\u9898\u56fe\u7247\" class=\"wp-image-5346\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/i2c-title-image-1024x576.png 1024w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/i2c-title-image-300x169.png 300w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/i2c-title-image-768x432.png 768w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/i2c-title-image-18x10.png 18w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/i2c-title-image.png 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>I2C\u603b\u7ebf\u5728\u5d4c\u5165\u5f0f\u9886\u57df\u975e\u5e38\u5e38\u7528\u3002\u6211\u4eec\u7528\u4e00\u4e2a\u4f8b\u5b50\u89e3\u91ca\u5b83\u662f\u5982\u4f55\u5de5\u4f5c\u7684\uff0c\u4ee5\u53ca\u5982\u4f55\u5728Raspberry Pi\u4e0a\u8bbe\u7f6e\u5b83\u3002<\/p>\n\n\n\n\n\n<h2 class=\"wp-block-heading\">I2C\u7279\u6027<\/h2>\n\n\n\n<p>\u96c6\u6210\u7535\u8def\u603b\u7ebf\u662f\u4e00\u79cd\u540c\u6b65\u7684\u4e32\u884c\u901a\u4fe1\u603b\u7ebf\u3002\u98de\u5229\u6d66\u534a\u5bfc\u4f53\u516c\u53f8\u57281982\u5e74\u8d1f\u8d23\u8fd9\u9879\u53d1\u660e\uff0c\u4f46\u8be5\u63a5\u53e3\u5f88\u5feb\u5c31\u5f97\u5230\u4e86\u666e\u53ca\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/I2C-Characteristics-1024x275.jpg\" alt=\"I2C\u7279\u6027\" class=\"wp-image-2247\" style=\"width:662px;height:177px\" width=\"662\" height=\"177\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/I2C-Characteristics-1024x275.jpg 1024w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/I2C-Characteristics-300x81.jpg 300w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/I2C-Characteristics-768x207.jpg 768w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/I2C-Characteristics-1536x413.jpg 1536w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/I2C-Characteristics-2048x551.jpg 2048w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/I2C-Characteristics-18x5.jpg 18w\" sizes=\"auto, (max-width: 662px) 100vw, 662px\" \/><figcaption class=\"wp-element-caption\">I2C\u7279\u6027<\/figcaption><\/figure>\n<\/div>\n\n\n<p>\u5e38\u7528\u7684\u540c\u4e49\u8bcd\u6709\uff1aI<sup>2<\/sup>C\u3001I2C\u6216IIC\u3002\u8be5\u63a5\u53e3\u91c7\u7528\u4e86\u63a7\u5236\u5668-\u76ee\u6807\u67b6\u6784\uff0c\u5141\u8bb8\u63a7\u5236\u5668\u4ec5\u7528\u4e24\u6839\u7ebf\u5c31\u80fd\u4e0e\u591a\u8fbe112\u4e2a\u8bbe\u5907\u8fdb\u884c\u901a\u4fe1\u3002<\/p>\n\n\n\n<p>\u63a7\u5236\u5668\u53ef\u4ee5\u8c03\u6574\u6bd4\u7279\u7387\u4ee5\u9002\u5e94\u7279\u5b9a\u76ee\u6807\u7684\u9700\u8981\u3002\u56e0\u6b64\uff0cI2C\u9002\u7528\u4e8e\u5f88\u591a\u8bbe\u5907\uff0c\u5982\u4f20\u611f\u5668\u3001EEPROM\u8bbe\u5907\u3001\u65f6\u949f\u3001\u7535\u673a\u9a71\u52a8\u5668\u7b49\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u63a5\u7ebf<\/h2>\n\n\n\n<p>I2C\u603b\u7ebf\u7684\u5e03\u7ebf\u771f\u7684\u518d\u7b80\u5355\u4e0d\u8fc7\u4e86\uff0c\u56e0\u4e3a\u4f60\u53ea\u9700\u8981\u4e24\u6839\u7ebf\u3002\u5c06\u63a7\u5236\u5668\u7684\u4e32\u884c\u65f6\u949f\uff08SCL\uff09\u5f15\u811a\u8fde\u63a5\u5230\u76ee\u6807\u8bbe\u5907\u7684\u4e32\u884c\u65f6\u949f\u5f15\u811a\u4e0a\uff0c\u540c\u65f6\u8fde\u63a5\u5b83\u4eec\u7684\u4e32\u884c\u6570\u636e\uff08SDA\uff09\u5f15\u811a\u3002I2C\u8f6f\u4ef6\u5c06\u5b8c\u6210\u5176\u4f59\u7684\u5de5\u4f5c\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/I2C-Wiring-1024x414.jpg\" alt=\"I2C \u63a5\u7ebf\" class=\"wp-image-2249\" style=\"width:524px;height:211px\" width=\"524\" height=\"211\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/I2C-Wiring-1024x414.jpg 1024w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/I2C-Wiring-300x121.jpg 300w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/I2C-Wiring-768x311.jpg 768w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/I2C-Wiring-1536x622.jpg 1536w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/I2C-Wiring-2048x829.jpg 2048w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/I2C-Wiring-18x7.jpg 18w\" sizes=\"auto, (max-width: 524px) 100vw, 524px\" \/><figcaption class=\"wp-element-caption\">\u63a5\u7ebf<\/figcaption><\/figure>\n<\/div>\n\n\n<p>\u5982\u679c\u4f60\u9700\u8981\u4e3a\u4f60\u7684I2C\u8bbe\u5907\u63d0\u4f9b\u7535\u6e90\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528Raspberry Pi\u76843V3\u30015V\u548cGROUND\u9488\u811a\u3002<\/p>\n\n\n\n<p>\u4e00\u4e9b\u8bbe\u5907\uff0c\u5982\u6211\u4eec\u7684 <a href=\"https:\/\/buyzero.de\/en\/products\/luftqualitatssensor-bosch-bme688-breakout-board?_pos=6&amp;_sid=0066ef795&amp;_ss=r\">BME688\u5206\u7ebf\u677f<\/a> \u6709\u4e00\u4e2aI2C\u63a5\u5934\uff0c\u6240\u4ee5\u4f60\u4e0d\u9700\u8981\u4efb\u4f55\u7535\u7ebf\u6765\u8fde\u63a5\u5b83\u4eec\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">I2C\u901a\u4fe1<\/h2>\n\n\n\n<p>\u4e92\u8054\u7535\u8def\u603b\u7ebf\u4ec5\u7528\u4e24\u6839\u7ebf\u5c31\u53ef\u4ee5\u8fde\u63a5128\u4e2a\u8bbe\u5907\u3002\u8fd9\u662f\u7531\u4e8e\u5de7\u5999\u7684\u901a\u4fe1\u539f\u7406\u800c\u5b9e\u73b0\u7684\u3002<\/p>\n\n\n\n<p>\u8fd9\u4e9b\u7ebf\uff08SDA\u548cSCL\uff09\u4ece\u4e0d\u4e3b\u52a8\u9a71\u52a8\u9ad8\u7535\u5e73\u3002\u5982\u679c\u4e00\u4e2a\u8bbe\u5907\u60f3\u53d1\u9001\u4e00\u4e2a\u903b\u8f911\uff0c\u5b83\u5c31\u4f1a\u8ba9\u8fd9\u6839\u7ebf\u6d6e\u7a7a\u3002\u8981\u53d1\u9001\u4e00\u4e2a\u903b\u8f91\u96f6\uff0c\u5c31\u628a\u7ebf\u62c9\u5230\u5730\u3002<\/p>\n\n\n\n<p>\u63a7\u5236\u5668\u53d1\u8d77\u901a\u4fe1\u3002\u7f51\u7edc\u4e0a\u7684\u4efb\u4f55\u8bbe\u5907\u90fd\u53ef\u4ee5\u5145\u5f53\u63a7\u5236\u5668\u548c\u76ee\u6807\u3002<\/p>\n\n\n\n<p>\u4e0b\u9762\u7684\u56fe\u5f62\u663e\u793a\u4e86\u72ec\u7acb\u7684\u4f4d\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/I2C-Communication-1024x447.jpg\" alt=\"I2C\u901a\u4fe1\" class=\"wp-image-2252\" style=\"width:549px;height:239px\" width=\"549\" height=\"239\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/I2C-Communication-1024x447.jpg 1024w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/I2C-Communication-300x131.jpg 300w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/I2C-Communication-768x336.jpg 768w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/I2C-Communication-1536x671.jpg 1536w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/I2C-Communication-2048x895.jpg 2048w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/I2C-Communication-18x8.jpg 18w\" sizes=\"auto, (max-width: 549px) 100vw, 549px\" \/><figcaption class=\"wp-element-caption\">I2C\u901a\u4fe1<\/figcaption><\/figure>\n<\/div>\n\n\n<p>\u4e3a\u4e86\u5f00\u59cb\u901a\u4fe1\uff0c\u63a7\u5236\u5668\u53d1\u9001\u4e00\u4e2a\u5f00\u59cb\u4f4d\uff0c\u7136\u540e\u662f\u76ee\u6807\u7684I2C\u5730\u5740\u548c\u671f\u671b\u7684\u64cd\u4f5c\u6a21\u5f0f\uff08R-\u8bfb\u6216W-\u5199\uff09\u3002<\/p>\n\n\n\n<p>\u5728I2C\u901a\u4fe1\u4e2d\uff0c\u76ee\u6807\u5fc5\u987b\u6bcf\u96948\u4f4d\uff08\u5728\u6bcf\u4e2a\u5b57\u8282\u4e4b\u540e\uff09\u8fd4\u56de\u4e00\u4e2aACK\u4f4d\u3002\u7531\u4e8e\u5730\u5740\u7a7a\u95f4\u901a\u5e38\u662f7\u4f4d\uff0c\u6240\u4ee5\u6709128\u4e2a\uff080\u5230127\uff09\u5730\u5740\u3002\u5176\u4e2d16\u4e2a\u662f\u4fdd\u7559\u7684\u3002\u8fd9\u5c31\u4e3a\u8bbe\u5907\u7559\u4e0b\u4e86112\u4e2a\u53ef\u80fd\u7684\u5730\u5740\u3002<\/p>\n\n\n\n<p>\u76ee\u6807\u5730\u5740\u548c\u64cd\u4f5c\u6a21\u5f0f\u662f\u4e00\u4e2a\u5b57\u8282\uff0c\u6240\u4ee5\u76ee\u6807\u5fc5\u987b\u8fd4\u56de\u4e00\u4e2aACK\u4f4d\u3002\u7136\u540e\u63a7\u5236\u5668\u53d1\u9001\uff088\u4f4d\uff09\u5bc4\u5b58\u5668\u5730\u5740\uff0c\u76ee\u6807\u673a\u518d\u6b21\u786e\u8ba4\u3002\u4ece\u90a3\u4ee5\u540e\uff0c\u8bfb\u5199\u901a\u4fe1\u5c31\u4e0d\u540c\u4e86\u3002<\/p>\n\n\n\n<p>\u5bf9\u4e8e\u5199\u5165\uff0c\u63a7\u5236\u5668\u53ea\u662f\u4ee58\u4f4d\u5757\u7684\u5f62\u5f0f\u53d1\u9001\u6570\u636e\u3002\u76ee\u6807\u4f1a\u786e\u8ba4\u6bcf\u4e2a\u5757\u3002\u4e00\u65e6\u63a7\u5236\u5668\u5b8c\u6210\u4e86\u5199\u5165\uff0c\u5b83\u5c31\u4f1a\u53d1\u9001\u505c\u6b62\u4f4d\u3002<\/p>\n\n\n\n<p>\u5bf9\u4e8e\u8bfb\u53d6\uff0c\u63a7\u5236\u5668\u518d\u6b21\u53d1\u9001\u5f00\u59cb\u4f4d\uff0c\u7136\u540e\u662f\u76ee\u6807\u5730\u5740\u3002\u76ee\u6807\u786e\u8ba4\u5e76\u5f00\u59cb\u4ee58\u4f4d\u5757\u53d1\u9001\u6570\u636e\u3002\u8fd9\u4e00\u6b21\uff0c\u63a7\u5236\u5668\u5fc5\u987b\u786e\u8ba4\u6bcf\u4e2a\u5b57\u8282\u3002\u4e3a\u4e86\u505c\u6b62\u8bfb\u53d6\uff0c\u63a7\u5236\u5668\u53d1\u9001NACK\u4f4d\uff0c\u6700\u540e\u53d1\u9001Stop\u4f4d\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4f18\u52bf\u3001\u52a3\u52bf\u548c\u5e94\u7528<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u4f18\u52bf<\/h3>\n\n\n\n<p>I2C\u603b\u7ebf\u7684\u4f18\u52bf\u662f\u76f8\u5f53\u660e\u663e\u7684\u3002\u4f60\u53ef\u4ee5\u7528\u4e24\u6839\u7ebf\u548c\u6bcf\u4e2a\u7ebf\u7684\u4e24\u4e2a\u5f15\u811a\u8fde\u63a5128\u4e2a\u8bbe\u5907\u3002\u8fd9\u771f\u662f\u592a\u5f3a\u5927\u4e86\u3002\u6b64\u5916\uff0c\u4f60\u8fd8\u6709\u7075\u6d3b\u7684\u901f\u5ea6\u3002\u786c\u4ef6\u8bbe\u7f6e\u51e0\u4e4e\u4e0d\u53ef\u80fd\u518d\u7b80\u5355\u4e86\u3002\u4e0eSPI\u4e0d\u540c\uff0c\u63a7\u5236\u5668\u77e5\u9053\u76ee\u6807\u662f\u5426\u6b63\u786e\u63a5\u6536\u4e86\u6570\u636e\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/I2C-Advantages-1024x443.jpg\" alt=\"\u4f18\u52bf\" class=\"wp-image-2251\" style=\"width:340px;height:147px\" width=\"340\" height=\"147\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/I2C-Advantages-1024x443.jpg 1024w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/I2C-Advantages-300x130.jpg 300w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/I2C-Advantages-768x333.jpg 768w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/I2C-Advantages-18x8.jpg 18w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/I2C-Advantages.jpg 1104w\" sizes=\"auto, (max-width: 340px) 100vw, 340px\" \/><figcaption class=\"wp-element-caption\">\u4f18\u52bf<\/figcaption><\/figure>\n<\/div>\n\n\n<h3 class=\"wp-block-heading\">\u52a3\u52bf<\/h3>\n\n\n\n<p>\u96c6\u6210\u7535\u8def\u95f4\u603b\u7ebf\u9700\u8981\u66f4\u591a\u7684\u7a7a\u95f4\u548c\u529f\u7387\uff0c\u56e0\u4e3a\u5b83\u4f7f\u7528\u4e86\u4e0a\u62c9\u7535\u963b\u3002\u4e0eSPI\u76f8\u6bd4\uff0c\u5b83\u7684\u901f\u5ea6\u8f83\u6162\u3002\u5982\u679c\u4e24\u4e2a\u8bbe\u5907\u4f7f\u7528\u76f8\u540c\u7684I2C\u5730\u5740\uff0c\u4f60\u4f1a\u9047\u5230\u9ebb\u70e6\u3002\u8be5\u5730\u5740\u76f4\u63a5\u5b58\u50a8\u5728\u8bbe\u5907\u4e0a\u3002\u6709\u4e9b\u8bbe\u5907\u8ba9\u4f60\u5728\u4e24\u4e2a\u53ef\u80fd\u7684\u5730\u5740\u4e2d\u9009\u62e9\uff0c\u65b9\u6cd5\u662f\u5728\u8bbe\u5907\u4e0a\u7684\u7279\u5b9a\u4f4d\u7f6e\u710a\u63a5\u4e00\u4e2a\u8df3\u7ebf\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/I2C-Disadvantages-1024x444.jpg\" alt=\"\u52a3\u52bf\" class=\"wp-image-2250\" style=\"width:372px;height:161px\" width=\"372\" height=\"161\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/I2C-Disadvantages-1024x444.jpg 1024w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/I2C-Disadvantages-300x130.jpg 300w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/I2C-Disadvantages-768x333.jpg 768w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/I2C-Disadvantages-18x8.jpg 18w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/I2C-Disadvantages.jpg 1103w\" sizes=\"auto, (max-width: 372px) 100vw, 372px\" \/><figcaption class=\"wp-element-caption\">\u52a3\u52bf<\/figcaption><\/figure>\n<\/div>\n\n\n<h3 class=\"wp-block-heading\">\u5e94\u7528<\/h3>\n\n\n\n<p>\u5982\u679c\u4f60\u641c\u7d22\u7684\u662f <a href=\"https:\/\/buyzero.de\/en\/search?type=product&amp;options%5Bprefix%5D=last&amp;options%5Bunavailable_products%5D=last&amp;q=sensor\">\u4f20\u611f\u5668<\/a> \u5728\u6211\u4eec\u7684\u5546\u5e97\u91cc\uff0c\u4f60\u4f1a\u6ce8\u610f\u5230\u51e0\u4e4e\u6240\u6709\u975e\u6a21\u62df\u7684\u4f20\u611f\u5668\u90fd\u4f7f\u7528I2C\u63a5\u53e3\u3002\u5b83\u5728\u5d4c\u5165\u5f0f\u9886\u57df\u975e\u5e38\u666e\u904d\u3002\u6709\u50cfI2C\u5b58\u50a8\u5668\u8fd9\u6837\u7684\u4e1c\u897f\u3002\u5f88\u591a\u65f6\u5019\uff0c\u5fae\u63a7\u5236\u5668\u4f7f\u7528\u8be5\u603b\u7ebf\u8fdb\u884c\u901a\u4fe1\u3002\u9664\u6b64\u4e4b\u5916\uff0c\u8bb8\u591aDAC (<strong>D<\/strong>\u6570\u5b57 <strong>A<\/strong>\u5364\u7d20 <strong>C<\/strong>\u8f6c\u6362\u5668\uff09\u548cADC\uff08<strong>A<\/strong>\u5364\u7d20 <strong>D<\/strong>\u6570\u5b57 <strong>C<\/strong>onverter\uff09\u4e0e\u8be5\u63a5\u53e3\u517c\u5bb9\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Raspberry Pi\u4e0a\u7684I2C<\/h2>\n\n\n\n<p>\u6211\u4eec\u7684 <a href=\"https:\/\/youtu.be\/GSmq8ZH01Sg\">\u89c6\u9891<\/a> \u5c55\u793a\u4e86\u5982\u4f55\u5728\u4f60\u7684Raspberry Pi\u4e0a\u8bbe\u7f6e\u4e92\u8fde\u7535\u8def\u603b\u7ebf\u3002<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" hcb-fetch-image-from=\"https:\/\/www.youtube.com\/watch?v=GSmq8ZH01Sg\" title=\"Raspberry Pi\u4e0a\u7684I2C - \u5982\u4f55\u7528Python\u4f7f\u7528I2C\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/GSmq8ZH01Sg?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n<div class=\"shariff shariff-align-center shariff-widget-align-left shariff-buttonstretch\"><ul class=\"shariff-buttons theme-white orientation-horizontal buttonsize-medium\"><li class=\"shariff-button twitter shariff-nocustomcolor\" style=\"background-color:#595959\"><a href=\"https:\/\/twitter.com\/share?url=https%3A%2F%2Fpicockpit.com%2Fraspberry-pi%2Fzh%2Fi2c-inter-integrated-circuit-bus%2F&text=I2C%20%E2%80%93%20The%20Inter-Integrated%20Circuit%20Bus\" title=\"\u5728 X \u4e0a\u5206\u4eab\" aria-label=\"\u5728 X \u4e0a\u5206\u4eab\" role=\"button\" rel=\"noopener nofollow\" class=\"shariff-link\" style=\"; background-color:#000; color:#000\" target=\"_blank\"><span class=\"shariff-icon\" style=\"fill:#000\"><svg width=\"32px\" height=\"20px\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewbox=\"0 0 24 24\"><path fill=\"#000\" d=\"M14.258 10.152L23.176 0h-2.113l-7.747 8.813L7.133 0H0l9.352 13.328L0 23.973h2.113l8.176-9.309 6.531 9.309h7.133zm-2.895 3.293l-.949-1.328L2.875 1.56h3.246l6.086 8.523.945 1.328 7.91 11.078h-3.246zm0 0\"\/><\/svg><\/span><span class=\"shariff-text\" style=\"color:#000\">\u5206\u4eab<\/span>&nbsp;<\/a><\/li><li class=\"shariff-button facebook shariff-nocustomcolor\" style=\"background-color:#4273c8\"><a href=\"https:\/\/www.facebook.com\/sharer\/sharer.php?u=https%3A%2F%2Fpicockpit.com%2Fraspberry-pi%2Fzh%2Fi2c-inter-integrated-circuit-bus%2F\" title=\"\u5728Facebook\u4e0a\u5206\u4eab\" aria-label=\"\u5728Facebook\u4e0a\u5206\u4eab\" role=\"button\" rel=\"nofollow\" class=\"shariff-link\" style=\"; background-color:#3b5998; color:#3b5998\" target=\"_blank\"><span class=\"shariff-icon\" style=\"fill:#3b5998\"><svg width=\"32px\" height=\"20px\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewbox=\"0 0 18 32\"><path fill=\"#3b5998\" d=\"M17.1 0.2v4.7h-2.8q-1.5 0-2.1 0.6t-0.5 1.9v3.4h5.2l-0.7 5.3h-4.5v13.6h-5.5v-13.6h-4.5v-5.3h4.5v-3.9q0-3.3 1.9-5.2t5-1.8q2.6 0 4.1 0.2z\"\/><\/svg><\/span><span class=\"shariff-text\" style=\"color:#3b5998\">\u5206\u4eab<\/span>&nbsp;<\/a><\/li><li class=\"shariff-button telegram shariff-nocustomcolor\" style=\"background-color:#4084A6\"><a href=\"https:\/\/telegram.me\/share\/url?url=https%3A%2F%2Fpicockpit.com%2Fraspberry-pi%2Fzh%2Fi2c-inter-integrated-circuit-bus%2F&text=I2C%20%E2%80%93%20The%20Inter-Integrated%20Circuit%20Bus\" title=\"\u5728\u7535\u62a5\u4e0a\u5206\u4eab\" aria-label=\"\u5728\u7535\u62a5\u4e0a\u5206\u4eab\" role=\"button\" rel=\"noopener nofollow\" class=\"shariff-link\" style=\"; background-color:#0088cc; color:#0088cc\" target=\"_blank\"><span class=\"shariff-icon\" style=\"fill:#0088cc\"><svg width=\"32px\" height=\"20px\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewbox=\"0 0 32 32\"><path fill=\"#0088cc\" d=\"M30.8 6.5l-4.5 21.4c-.3 1.5-1.2 1.9-2.5 1.2L16.9 24l-3.3 3.2c-.4.4-.7.7-1.4.7l.5-7L25.5 9.2c.6-.5-.1-.8-.9-.3l-15.8 10L2 16.7c-1.5-.5-1.5-1.5.3-2.2L28.9 4.3c1.3-.5 2.3.3 1.9 2.2z\"\/><\/svg><\/span><span class=\"shariff-text\" style=\"color:#0088cc\">\u5206\u4eab<\/span>&nbsp;<\/a><\/li><li class=\"shariff-button reddit shariff-nocustomcolor\" style=\"background-color:#ff5700\"><a href=\"https:\/\/www.reddit.com\/submit?url=https%3A%2F%2Fpicockpit.com%2Fraspberry-pi%2Fzh%2Fi2c-inter-integrated-circuit-bus%2F\" title=\"\u5206\u4eab\u81f3Reddit\" aria-label=\"\u5206\u4eab\u81f3Reddit\" role=\"button\" rel=\"noopener nofollow\" class=\"shariff-link\" style=\"; background-color:#ff4500; color:#ff4500\" target=\"_blank\"><span class=\"shariff-icon\" style=\"fill:#ff4500\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewbox=\"0 0 512 512\"><path fill=\"#ff4500\" d=\"M440.3 203.5c-15 0-28.2 6.2-37.9 15.9-35.7-24.7-83.8-40.6-137.1-42.3L293 52.3l88.2 19.8c0 21.6 17.6 39.2 39.2 39.2 22 0 39.7-18.1 39.7-39.7s-17.6-39.7-39.7-39.7c-15.4 0-28.7 9.3-35.3 22l-97.4-21.6c-4.9-1.3-9.7 2.2-11 7.1L246.3 177c-52.9 2.2-100.5 18.1-136.3 42.8-9.7-10.1-23.4-16.3-38.4-16.3-55.6 0-73.8 74.6-22.9 100.1-1.8 7.9-2.6 16.3-2.6 24.7 0 83.8 94.4 151.7 210.3 151.7 116.4 0 210.8-67.9 210.8-151.7 0-8.4-.9-17.2-3.1-25.1 49.9-25.6 31.5-99.7-23.8-99.7zM129.4 308.9c0-22 17.6-39.7 39.7-39.7 21.6 0 39.2 17.6 39.2 39.7 0 21.6-17.6 39.2-39.2 39.2-22 .1-39.7-17.6-39.7-39.2zm214.3 93.5c-36.4 36.4-139.1 36.4-175.5 0-4-3.5-4-9.7 0-13.7 3.5-3.5 9.7-3.5 13.2 0 27.8 28.5 120 29 149 0 3.5-3.5 9.7-3.5 13.2 0 4.1 4 4.1 10.2.1 13.7zm-.8-54.2c-21.6 0-39.2-17.6-39.2-39.2 0-22 17.6-39.7 39.2-39.7 22 0 39.7 17.6 39.7 39.7-.1 21.5-17.7 39.2-39.7 39.2z\"\/><\/svg><\/span><span class=\"shariff-text\" style=\"color:#ff4500\">\u5206\u4eab<\/span>&nbsp;<\/a><\/li><\/ul><\/div>","protected":false},"excerpt":{"rendered":"<p>I2C\u603b\u7ebf\u5728\u5d4c\u5165\u5f0f\u9886\u57df\u975e\u5e38\u5e38\u7528\u3002\u6211\u4eec\u7528\u4e00\u4e2a\u4f8b\u5b50\u89e3\u91ca\u5b83\u662f\u5982\u4f55\u5de5\u4f5c\u7684\uff0c\u4ee5\u53ca\u5982\u4f55\u5728Raspberry Pi\u4e0a\u8bbe\u7f6e\u5b83\u3002I2C\u7684\u7279\u70b9 \u96c6\u6210\u7535\u8def\u95f4\u603b\u7ebf\u662f\u4e00\u79cd\u540c\u6b65\u4e32\u884c\u901a\u4fe1\u603b\u7ebf\u3002\u98de\u5229\u6d66\u534a\u5bfc\u4f53\u516c\u53f8\u57281982\u5e74\u8d1f\u8d23\u53d1\u660e\uff0c\u4f46\u8be5\u63a5\u53e3\u5f88\u5feb\u5c31\u83b7\u5f97\u4e86...<\/p>","protected":false},"author":3,"featured_media":5346,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[196],"tags":[208,205,206,207,201,204,189,188,187],"class_list":["post-2236","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-interfaces","tag-bus","tag-i2c","tag-iic","tag-inter-integrated-circuit","tag-interface","tag-knowledge","tag-pi","tag-raspberry","tag-raspberry-pi"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>I2C - The Inter-Integrated Circuit Bus | PiCockpit<\/title>\n<meta name=\"description\" content=\"The I2C bus is very commonly used in the embedded realm. We explain how it works and how to set it up on the Raspberry Pi with an example.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/picockpit.com\/raspberry-pi\/zh\/i2c-inter-integrated-circuit-bus\/\" \/>\n<meta property=\"og:locale\" content=\"zh_HK\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"I2C - The Inter-Integrated Circuit Bus | PiCockpit\" \/>\n<meta property=\"og:description\" content=\"The I2C bus is very commonly used in the embedded realm. We explain how it works and how to set it up on the Raspberry Pi with an example.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/picockpit.com\/raspberry-pi\/zh\/i2c-inter-integrated-circuit-bus\/\" \/>\n<meta property=\"og:site_name\" content=\"PiCockpit\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/pi3gshop\" \/>\n<meta property=\"article:published_time\" content=\"2022-05-11T18:44:30+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-09-18T13:53:06+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/i2c-title-image.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"675\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Nathan Busler\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@pi3g\" \/>\n<meta name=\"twitter:site\" content=\"@pi3g\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"Nathan Busler\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9810\u8a08\u95b1\u8b80\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 \u5206\u9418\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/ja\\\/i2c%e3%82%a4%e3%83%b3%e3%82%bf%e3%83%bc%e3%82%a4%e3%83%b3%e3%83%86%e3%82%b0%e3%83%ac%e3%83%bc%e3%83%86%e3%83%83%e3%83%89%e3%82%b5%e3%83%bc%e3%82%ad%e3%83%83%e3%83%88%e3%83%90%e3%82%b9\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/ja\\\/i2c%e3%82%a4%e3%83%b3%e3%82%bf%e3%83%bc%e3%82%a4%e3%83%b3%e3%83%86%e3%82%b0%e3%83%ac%e3%83%bc%e3%83%86%e3%83%83%e3%83%89%e3%82%b5%e3%83%bc%e3%82%ad%e3%83%83%e3%83%88%e3%83%90%e3%82%b9\\\/\"},\"author\":{\"name\":\"Nathan Busler\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#\\\/schema\\\/person\\\/e38fef75134e5e54175b2615a8c3eb47\"},\"headline\":\"I2C &#8211; The Inter-Integrated Circuit Bus\",\"datePublished\":\"2022-05-11T18:44:30+00:00\",\"dateModified\":\"2023-09-18T13:53:06+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/ja\\\/i2c%e3%82%a4%e3%83%b3%e3%82%bf%e3%83%bc%e3%82%a4%e3%83%b3%e3%83%86%e3%82%b0%e3%83%ac%e3%83%bc%e3%83%86%e3%83%83%e3%83%89%e3%82%b5%e3%83%bc%e3%82%ad%e3%83%83%e3%83%88%e3%83%90%e3%82%b9\\\/\"},\"wordCount\":705,\"commentCount\":6,\"publisher\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/ja\\\/i2c%e3%82%a4%e3%83%b3%e3%82%bf%e3%83%bc%e3%82%a4%e3%83%b3%e3%83%86%e3%82%b0%e3%83%ac%e3%83%bc%e3%83%86%e3%83%83%e3%83%89%e3%82%b5%e3%83%bc%e3%82%ad%e3%83%83%e3%83%88%e3%83%90%e3%82%b9\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/wp-content\\\/uploads\\\/2022\\\/05\\\/i2c-title-image.png\",\"keywords\":[\"Bus\",\"I2C\",\"IIC\",\"Inter-Integrated Circuit\",\"Interface\",\"Knowledge\",\"Pi\",\"Raspberry\",\"Raspberry Pi\"],\"articleSection\":[\"Interfaces\"],\"inLanguage\":\"zh-HK\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/ja\\\/i2c%e3%82%a4%e3%83%b3%e3%82%bf%e3%83%bc%e3%82%a4%e3%83%b3%e3%83%86%e3%82%b0%e3%83%ac%e3%83%bc%e3%83%86%e3%83%83%e3%83%89%e3%82%b5%e3%83%bc%e3%82%ad%e3%83%83%e3%83%88%e3%83%90%e3%82%b9\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/ja\\\/i2c%e3%82%a4%e3%83%b3%e3%82%bf%e3%83%bc%e3%82%a4%e3%83%b3%e3%83%86%e3%82%b0%e3%83%ac%e3%83%bc%e3%83%86%e3%83%83%e3%83%89%e3%82%b5%e3%83%bc%e3%82%ad%e3%83%83%e3%83%88%e3%83%90%e3%82%b9\\\/\",\"url\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/ja\\\/i2c%e3%82%a4%e3%83%b3%e3%82%bf%e3%83%bc%e3%82%a4%e3%83%b3%e3%83%86%e3%82%b0%e3%83%ac%e3%83%bc%e3%83%86%e3%83%83%e3%83%89%e3%82%b5%e3%83%bc%e3%82%ad%e3%83%83%e3%83%88%e3%83%90%e3%82%b9\\\/\",\"name\":\"I2C - The Inter-Integrated Circuit Bus | PiCockpit\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/ja\\\/i2c%e3%82%a4%e3%83%b3%e3%82%bf%e3%83%bc%e3%82%a4%e3%83%b3%e3%83%86%e3%82%b0%e3%83%ac%e3%83%bc%e3%83%86%e3%83%83%e3%83%89%e3%82%b5%e3%83%bc%e3%82%ad%e3%83%83%e3%83%88%e3%83%90%e3%82%b9\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/ja\\\/i2c%e3%82%a4%e3%83%b3%e3%82%bf%e3%83%bc%e3%82%a4%e3%83%b3%e3%83%86%e3%82%b0%e3%83%ac%e3%83%bc%e3%83%86%e3%83%83%e3%83%89%e3%82%b5%e3%83%bc%e3%82%ad%e3%83%83%e3%83%88%e3%83%90%e3%82%b9\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/wp-content\\\/uploads\\\/2022\\\/05\\\/i2c-title-image.png\",\"datePublished\":\"2022-05-11T18:44:30+00:00\",\"dateModified\":\"2023-09-18T13:53:06+00:00\",\"description\":\"The I2C bus is very commonly used in the embedded realm. We explain how it works and how to set it up on the Raspberry Pi with an example.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/ja\\\/i2c%e3%82%a4%e3%83%b3%e3%82%bf%e3%83%bc%e3%82%a4%e3%83%b3%e3%83%86%e3%82%b0%e3%83%ac%e3%83%bc%e3%83%86%e3%83%83%e3%83%89%e3%82%b5%e3%83%bc%e3%82%ad%e3%83%83%e3%83%88%e3%83%90%e3%82%b9\\\/#breadcrumb\"},\"inLanguage\":\"zh-HK\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/ja\\\/i2c%e3%82%a4%e3%83%b3%e3%82%bf%e3%83%bc%e3%82%a4%e3%83%b3%e3%83%86%e3%82%b0%e3%83%ac%e3%83%bc%e3%83%86%e3%83%83%e3%83%89%e3%82%b5%e3%83%bc%e3%82%ad%e3%83%83%e3%83%88%e3%83%90%e3%82%b9\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-HK\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/ja\\\/i2c%e3%82%a4%e3%83%b3%e3%82%bf%e3%83%bc%e3%82%a4%e3%83%b3%e3%83%86%e3%82%b0%e3%83%ac%e3%83%bc%e3%83%86%e3%83%83%e3%83%89%e3%82%b5%e3%83%bc%e3%82%ad%e3%83%83%e3%83%88%e3%83%90%e3%82%b9\\\/#primaryimage\",\"url\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/wp-content\\\/uploads\\\/2022\\\/05\\\/i2c-title-image.png\",\"contentUrl\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/wp-content\\\/uploads\\\/2022\\\/05\\\/i2c-title-image.png\",\"width\":1200,\"height\":675,\"caption\":\"Everything about I2C Title Image\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/ja\\\/i2c%e3%82%a4%e3%83%b3%e3%82%bf%e3%83%bc%e3%82%a4%e3%83%b3%e3%83%86%e3%82%b0%e3%83%ac%e3%83%bc%e3%83%86%e3%83%83%e3%83%89%e3%82%b5%e3%83%bc%e3%82%ad%e3%83%83%e3%83%88%e3%83%90%e3%82%b9\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Interfaces\",\"item\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/category\\\/interfaces\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"I2C &#8211; The Inter-Integrated Circuit Bus\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#website\",\"url\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/\",\"name\":\"PiCockpit\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-HK\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#organization\",\"name\":\"PiCockpit.com\",\"url\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-HK\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/Screenshot-from-2023-07-24-15-01-24.png\",\"contentUrl\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/Screenshot-from-2023-07-24-15-01-24.png\",\"width\":1165,\"height\":283,\"caption\":\"PiCockpit.com\"},\"image\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/pi3gshop\",\"https:\\\/\\\/x.com\\\/pi3g\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#\\\/schema\\\/person\\\/e38fef75134e5e54175b2615a8c3eb47\",\"name\":\"Nathan Busler\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-HK\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/93fef66631dac0f47ce2c90f774cd4e4fe44028ea5266602e20fbf246f7d14f9?s=96&d=blank&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/93fef66631dac0f47ce2c90f774cd4e4fe44028ea5266602e20fbf246f7d14f9?s=96&d=blank&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/93fef66631dac0f47ce2c90f774cd4e4fe44028ea5266602e20fbf246f7d14f9?s=96&d=blank&r=g\",\"caption\":\"Nathan Busler\"},\"sameAs\":[\"https:\\\/\\\/buyzero.de\"],\"url\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/zh\\\/author\\\/nathan\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"I2C - \u96c6\u6210\u7535\u8def\u603b\u7ebf | PiCockpit","description":"I2C\u603b\u7ebf\u5728\u5d4c\u5165\u5f0f\u9886\u57df\u975e\u5e38\u5e38\u7528\u3002\u6211\u4eec\u7528\u4e00\u4e2a\u4f8b\u5b50\u89e3\u91ca\u5b83\u662f\u5982\u4f55\u5de5\u4f5c\u7684\uff0c\u4ee5\u53ca\u5982\u4f55\u5728Raspberry Pi\u4e0a\u8bbe\u7f6e\u5b83\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/picockpit.com\/raspberry-pi\/zh\/i2c-inter-integrated-circuit-bus\/","og_locale":"zh_HK","og_type":"article","og_title":"I2C - The Inter-Integrated Circuit Bus | PiCockpit","og_description":"The I2C bus is very commonly used in the embedded realm. We explain how it works and how to set it up on the Raspberry Pi with an example.","og_url":"https:\/\/picockpit.com\/raspberry-pi\/zh\/i2c-inter-integrated-circuit-bus\/","og_site_name":"PiCockpit","article_publisher":"https:\/\/www.facebook.com\/pi3gshop","article_published_time":"2022-05-11T18:44:30+00:00","article_modified_time":"2023-09-18T13:53:06+00:00","og_image":[{"width":1200,"height":675,"url":"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/i2c-title-image.png","type":"image\/png"}],"author":"Nathan Busler","twitter_card":"summary_large_image","twitter_creator":"@pi3g","twitter_site":"@pi3g","twitter_misc":{"\u4f5c\u8005":"Nathan Busler","\u9810\u8a08\u95b1\u8b80\u6642\u9593":"5 \u5206\u9418"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/picockpit.com\/raspberry-pi\/ja\/i2c%e3%82%a4%e3%83%b3%e3%82%bf%e3%83%bc%e3%82%a4%e3%83%b3%e3%83%86%e3%82%b0%e3%83%ac%e3%83%bc%e3%83%86%e3%83%83%e3%83%89%e3%82%b5%e3%83%bc%e3%82%ad%e3%83%83%e3%83%88%e3%83%90%e3%82%b9\/#article","isPartOf":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/ja\/i2c%e3%82%a4%e3%83%b3%e3%82%bf%e3%83%bc%e3%82%a4%e3%83%b3%e3%83%86%e3%82%b0%e3%83%ac%e3%83%bc%e3%83%86%e3%83%83%e3%83%89%e3%82%b5%e3%83%bc%e3%82%ad%e3%83%83%e3%83%88%e3%83%90%e3%82%b9\/"},"author":{"name":"Nathan Busler","@id":"https:\/\/picockpit.com\/raspberry-pi\/#\/schema\/person\/e38fef75134e5e54175b2615a8c3eb47"},"headline":"I2C &#8211; The Inter-Integrated Circuit Bus","datePublished":"2022-05-11T18:44:30+00:00","dateModified":"2023-09-18T13:53:06+00:00","mainEntityOfPage":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/ja\/i2c%e3%82%a4%e3%83%b3%e3%82%bf%e3%83%bc%e3%82%a4%e3%83%b3%e3%83%86%e3%82%b0%e3%83%ac%e3%83%bc%e3%83%86%e3%83%83%e3%83%89%e3%82%b5%e3%83%bc%e3%82%ad%e3%83%83%e3%83%88%e3%83%90%e3%82%b9\/"},"wordCount":705,"commentCount":6,"publisher":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/#organization"},"image":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/ja\/i2c%e3%82%a4%e3%83%b3%e3%82%bf%e3%83%bc%e3%82%a4%e3%83%b3%e3%83%86%e3%82%b0%e3%83%ac%e3%83%bc%e3%83%86%e3%83%83%e3%83%89%e3%82%b5%e3%83%bc%e3%82%ad%e3%83%83%e3%83%88%e3%83%90%e3%82%b9\/#primaryimage"},"thumbnailUrl":"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/i2c-title-image.png","keywords":["Bus","I2C","IIC","Inter-Integrated Circuit","Interface","Knowledge","Pi","Raspberry","Raspberry Pi"],"articleSection":["Interfaces"],"inLanguage":"zh-HK","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/picockpit.com\/raspberry-pi\/ja\/i2c%e3%82%a4%e3%83%b3%e3%82%bf%e3%83%bc%e3%82%a4%e3%83%b3%e3%83%86%e3%82%b0%e3%83%ac%e3%83%bc%e3%83%86%e3%83%83%e3%83%89%e3%82%b5%e3%83%bc%e3%82%ad%e3%83%83%e3%83%88%e3%83%90%e3%82%b9\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/picockpit.com\/raspberry-pi\/ja\/i2c%e3%82%a4%e3%83%b3%e3%82%bf%e3%83%bc%e3%82%a4%e3%83%b3%e3%83%86%e3%82%b0%e3%83%ac%e3%83%bc%e3%83%86%e3%83%83%e3%83%89%e3%82%b5%e3%83%bc%e3%82%ad%e3%83%83%e3%83%88%e3%83%90%e3%82%b9\/","url":"https:\/\/picockpit.com\/raspberry-pi\/ja\/i2c%e3%82%a4%e3%83%b3%e3%82%bf%e3%83%bc%e3%82%a4%e3%83%b3%e3%83%86%e3%82%b0%e3%83%ac%e3%83%bc%e3%83%86%e3%83%83%e3%83%89%e3%82%b5%e3%83%bc%e3%82%ad%e3%83%83%e3%83%88%e3%83%90%e3%82%b9\/","name":"I2C - \u96c6\u6210\u7535\u8def\u603b\u7ebf | PiCockpit","isPartOf":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/#website"},"primaryImageOfPage":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/ja\/i2c%e3%82%a4%e3%83%b3%e3%82%bf%e3%83%bc%e3%82%a4%e3%83%b3%e3%83%86%e3%82%b0%e3%83%ac%e3%83%bc%e3%83%86%e3%83%83%e3%83%89%e3%82%b5%e3%83%bc%e3%82%ad%e3%83%83%e3%83%88%e3%83%90%e3%82%b9\/#primaryimage"},"image":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/ja\/i2c%e3%82%a4%e3%83%b3%e3%82%bf%e3%83%bc%e3%82%a4%e3%83%b3%e3%83%86%e3%82%b0%e3%83%ac%e3%83%bc%e3%83%86%e3%83%83%e3%83%89%e3%82%b5%e3%83%bc%e3%82%ad%e3%83%83%e3%83%88%e3%83%90%e3%82%b9\/#primaryimage"},"thumbnailUrl":"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/i2c-title-image.png","datePublished":"2022-05-11T18:44:30+00:00","dateModified":"2023-09-18T13:53:06+00:00","description":"I2C\u603b\u7ebf\u5728\u5d4c\u5165\u5f0f\u9886\u57df\u975e\u5e38\u5e38\u7528\u3002\u6211\u4eec\u7528\u4e00\u4e2a\u4f8b\u5b50\u89e3\u91ca\u5b83\u662f\u5982\u4f55\u5de5\u4f5c\u7684\uff0c\u4ee5\u53ca\u5982\u4f55\u5728Raspberry Pi\u4e0a\u8bbe\u7f6e\u5b83\u3002","breadcrumb":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/ja\/i2c%e3%82%a4%e3%83%b3%e3%82%bf%e3%83%bc%e3%82%a4%e3%83%b3%e3%83%86%e3%82%b0%e3%83%ac%e3%83%bc%e3%83%86%e3%83%83%e3%83%89%e3%82%b5%e3%83%bc%e3%82%ad%e3%83%83%e3%83%88%e3%83%90%e3%82%b9\/#breadcrumb"},"inLanguage":"zh-HK","potentialAction":[{"@type":"ReadAction","target":["https:\/\/picockpit.com\/raspberry-pi\/ja\/i2c%e3%82%a4%e3%83%b3%e3%82%bf%e3%83%bc%e3%82%a4%e3%83%b3%e3%83%86%e3%82%b0%e3%83%ac%e3%83%bc%e3%83%86%e3%83%83%e3%83%89%e3%82%b5%e3%83%bc%e3%82%ad%e3%83%83%e3%83%88%e3%83%90%e3%82%b9\/"]}]},{"@type":"ImageObject","inLanguage":"zh-HK","@id":"https:\/\/picockpit.com\/raspberry-pi\/ja\/i2c%e3%82%a4%e3%83%b3%e3%82%bf%e3%83%bc%e3%82%a4%e3%83%b3%e3%83%86%e3%82%b0%e3%83%ac%e3%83%bc%e3%83%86%e3%83%83%e3%83%89%e3%82%b5%e3%83%bc%e3%82%ad%e3%83%83%e3%83%88%e3%83%90%e3%82%b9\/#primaryimage","url":"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/i2c-title-image.png","contentUrl":"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/i2c-title-image.png","width":1200,"height":675,"caption":"Everything about I2C Title Image"},{"@type":"BreadcrumbList","@id":"https:\/\/picockpit.com\/raspberry-pi\/ja\/i2c%e3%82%a4%e3%83%b3%e3%82%bf%e3%83%bc%e3%82%a4%e3%83%b3%e3%83%86%e3%82%b0%e3%83%ac%e3%83%bc%e3%83%86%e3%83%83%e3%83%89%e3%82%b5%e3%83%bc%e3%82%ad%e3%83%83%e3%83%88%e3%83%90%e3%82%b9\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/picockpit.com\/raspberry-pi\/"},{"@type":"ListItem","position":2,"name":"Interfaces","item":"https:\/\/picockpit.com\/raspberry-pi\/category\/interfaces\/"},{"@type":"ListItem","position":3,"name":"I2C &#8211; The Inter-Integrated Circuit Bus"}]},{"@type":"WebSite","@id":"https:\/\/picockpit.com\/raspberry-pi\/#website","url":"https:\/\/picockpit.com\/raspberry-pi\/","name":"\u7801\u5934","description":"","publisher":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/picockpit.com\/raspberry-pi\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-HK"},{"@type":"Organization","@id":"https:\/\/picockpit.com\/raspberry-pi\/#organization","name":"PiCockpit.com","url":"https:\/\/picockpit.com\/raspberry-pi\/","logo":{"@type":"ImageObject","inLanguage":"zh-HK","@id":"https:\/\/picockpit.com\/raspberry-pi\/#\/schema\/logo\/image\/","url":"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2023\/07\/Screenshot-from-2023-07-24-15-01-24.png","contentUrl":"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2023\/07\/Screenshot-from-2023-07-24-15-01-24.png","width":1165,"height":283,"caption":"PiCockpit.com"},"image":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/pi3gshop","https:\/\/x.com\/pi3g"]},{"@type":"Person","@id":"https:\/\/picockpit.com\/raspberry-pi\/#\/schema\/person\/e38fef75134e5e54175b2615a8c3eb47","name":"Nathan Busler","image":{"@type":"ImageObject","inLanguage":"zh-HK","@id":"https:\/\/secure.gravatar.com\/avatar\/93fef66631dac0f47ce2c90f774cd4e4fe44028ea5266602e20fbf246f7d14f9?s=96&d=blank&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/93fef66631dac0f47ce2c90f774cd4e4fe44028ea5266602e20fbf246f7d14f9?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/93fef66631dac0f47ce2c90f774cd4e4fe44028ea5266602e20fbf246f7d14f9?s=96&d=blank&r=g","caption":"Nathan Busler"},"sameAs":["https:\/\/buyzero.de"],"url":"https:\/\/picockpit.com\/raspberry-pi\/zh\/author\/nathan\/"}]}},"_links":{"self":[{"href":"https:\/\/picockpit.com\/raspberry-pi\/zh\/wp-json\/wp\/v2\/posts\/2236","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/picockpit.com\/raspberry-pi\/zh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/picockpit.com\/raspberry-pi\/zh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/picockpit.com\/raspberry-pi\/zh\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/picockpit.com\/raspberry-pi\/zh\/wp-json\/wp\/v2\/comments?post=2236"}],"version-history":[{"count":14,"href":"https:\/\/picockpit.com\/raspberry-pi\/zh\/wp-json\/wp\/v2\/posts\/2236\/revisions"}],"predecessor-version":[{"id":5348,"href":"https:\/\/picockpit.com\/raspberry-pi\/zh\/wp-json\/wp\/v2\/posts\/2236\/revisions\/5348"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/picockpit.com\/raspberry-pi\/zh\/wp-json\/wp\/v2\/media\/5346"}],"wp:attachment":[{"href":"https:\/\/picockpit.com\/raspberry-pi\/zh\/wp-json\/wp\/v2\/media?parent=2236"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/picockpit.com\/raspberry-pi\/zh\/wp-json\/wp\/v2\/categories?post=2236"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/picockpit.com\/raspberry-pi\/zh\/wp-json\/wp\/v2\/tags?post=2236"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}