{"id":4243,"date":"2022-03-26T10:23:52","date_gmt":"2022-03-26T02:23:52","guid":{"rendered":"https:\/\/blog.iyatt.com\/?p=4243"},"modified":"2024-05-05T14:19:16","modified_gmt":"2024-05-05T06:19:16","slug":"spi-%e6%8e%a5%e5%8f%a3-oled-%e7%a1%ac%e6%94%b9-i2c","status":"publish","type":"post","link":"https:\/\/blog.iyatt.com\/?p=4243","title":{"rendered":"SPI OLED \u786c\u6539 I2C"},"content":{"rendered":"\n<p>\u6211\u7528\u7684 OLED \u90fd\u662f I2C \u63a5\u53e3\u7684\uff0c\u5bf9\u4e8e SPI \u5e76\u4e0d\u719f\u6089\uff0c\u800c\u4e14SPI \u5171\u8981\u5360\u7528 7 \u4e2a\u5f15\u811a\uff0cI2C \u53ea\u9700\u8981 4 \u4e2a\u3002\u521a\u624d\u6574\u7406\u4e1c\u897f\u7684\u65f6\u5019\uff0c\u7ffb\u5230\u4e4b\u524d\u4e00\u4e2a\u9879\u76ee\u7528\u8fc7\u7684 SPI OLED\uff0c\u540c\u65f6\u624d\u53d1\u73b0\u539f\u6765\u8fd9\u4e2a OLED \u672c\u8eab\u662f\u652f\u6301\u786c\u6539\u7684\u3002<\/p>\n\n\n<p>\u53ef\u4ee5\u770b\u5230\u7535\u8def\u677f\u4e0a\u6709\u6807\u5199\uff0c\u9ed8\u8ba4\u662f SPI \u63a5\u53e3\uff0cR3 \u548c R4 \u4f4d\u7f6e\u6709\u7535\u963b\uff0c\u5982\u679c\u8981\u6539\u4e3a I2C\uff0c\u90a3\u4e48\u5c31\u8981\u5728 R1\u3001R4\u3001R6\u3001R7 \u548c R8 \u4f4d\u7f6e\u63a5\u7535\u963b\u3002<\/p>\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"807\" height=\"721\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-308.png\" alt=\"\" class=\"wp-image-4244 lazyload\" data-srcset=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-308.png 807w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-308-300x268.png 300w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-308-768x686.png 768w\" data-sizes=\"(max-width: 807px) 100vw, 807px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 807px; --smush-placeholder-aspect-ratio: 807\/721;\" \/><\/figure>\n\n\n<p>\u5148\u53ef\u4ee5\u628a R3 \u4f4d\u7f6e\u7684\u7535\u963b\u7528\u7535\u70d9\u94c1\u52a0\u70ed\u53d6\u4e0b\u6765\uff0c\u518d\u710a\u63a5\u5230 R1 \u4f4d\u7f6e<\/p>\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"535\" height=\"316\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-309.png\" alt=\"\" class=\"wp-image-4245 lazyload\" data-srcset=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-309.png 535w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-309-300x177.png 300w\" data-sizes=\"(max-width: 535px) 100vw, 535px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 535px; --smush-placeholder-aspect-ratio: 535\/316;\" \/><\/figure>\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"403\" height=\"385\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-310.png\" alt=\"\" class=\"wp-image-4246 lazyload\" data-srcset=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-310.png 403w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-310-300x287.png 300w\" data-sizes=\"(max-width: 403px) 100vw, 403px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 403px; --smush-placeholder-aspect-ratio: 403\/385;\" \/><\/figure>\n\n\n<p>R8 \u4f4d\u7f6e\u6ca1\u6709\u591a\u7684\u7535\u963b\u632a\u8fc7\u6765\uff0c\u53ef\u4ee5\u76f4\u63a5\u4e0a\u710a\u77ed\u63a5<\/p>\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"238\" height=\"204\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-311.png\" alt=\"\" class=\"wp-image-4247 lazyload\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 238px; --smush-placeholder-aspect-ratio: 238\/204;\"><\/figure>\n\n\n<p>\u7136\u540e\u8fdb\u884c\u6d4b\u8bd5\uff0c\u63a5\u7ebf\u53c2\u8003\u4e0b\u8868<\/p>\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>\u5f15\u811a<\/td><td>\u63a5\u7ebf<\/td><\/tr><tr><td>GND<\/td><td>GND<\/td><\/tr><tr><td>VCC<\/td><td>VCC<\/td><\/tr><tr><td>D0<\/td><td>SCL<\/td><\/tr><tr><td>D1<\/td><td>SDA<\/td><\/tr><tr><td>RES<\/td><td>VCC<\/td><\/tr><tr><td>DC<\/td><td>\u63a5 GND \u65f6\u5730\u5740\u4e3a 0x3C\uff0c\u63a5 VCC \u65f6\u5730\u5740\u4e3a 0x3D<\/td><\/tr><tr><td>CS<\/td><td>GND<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n<p>\u8fd9\u91cc\u9700\u8981\u6ce8\u610f\uff0c\u5c3d\u7ba1 I2C \u5b9e\u9645\u7528\u7684\u662f GND\u3001VCC\u3001D0\u3001D1\uff0c\u4f46\u662f\u4e0d\u540c\u4e8e\u539f\u751f I2C \u7684 OLED\uff0c\u5269\u4f59\u63a5\u53e3\u6240\u5904\u7684\u9ad8\u4f4e\u7535\u5e73\u4f1a\u5f71\u54cd\u4f7f\u7528\uff0c\u5fc5\u987b\u6309\u7167\u4e0a\u9762\u8981\u6c42\u63a5\u7ebf\u3002<\/p>\n\n\n<p>\u6d4b\u8bd5\u4f7f\u7528\u6ca1\u6709\u95ee\u9898<\/p>\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1000\" height=\"750\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/IMG_20220326_100256.jpg\" alt=\"\" class=\"wp-image-4248 lazyload\" data-srcset=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/IMG_20220326_100256.jpg 1000w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/IMG_20220326_100256-300x225.jpg 300w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/IMG_20220326_100256-768x576.jpg 768w\" data-sizes=\"(max-width: 1000px) 100vw, 1000px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1000px; --smush-placeholder-aspect-ratio: 1000\/750;\" \/><\/figure>\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6211\u7528\u7684 OLED \u90fd\u662f I2C \u63a5\u53e3\u7684\uff0c\u5bf9\u4e8e SPI \u5e76\u4e0d\u719f\u6089\uff0c\u800c\u4e14SPI \u5171\u8981\u5360\u7528 7 \u4e2a\u5f15\u811a\uff0cI2C \u53ea\u9700 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"zakra_page_container_layout":"customizer","zakra_page_sidebar_layout":"customizer","zakra_remove_content_margin":false,"zakra_sidebar":"customizer","zakra_transparent_header":"customizer","zakra_logo":0,"zakra_main_header_style":"default","zakra_menu_item_color":"","zakra_menu_item_hover_color":"","zakra_menu_item_active_color":"","zakra_menu_active_style":"","zakra_page_header":true,"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-4243","post","type-post","status-publish","format-standard","hentry","category-all"],"modified_by":"IYATT-yx","_links":{"self":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/posts\/4243","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4243"}],"version-history":[{"count":0,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/posts\/4243\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4243"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4243"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4243"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}