{"id":21733,"date":"2021-02-15T08:58:20","date_gmt":"2021-02-15T05:28:20","guid":{"rendered":"https:\/\/thecaferobot.com\/learn\/?p=21733"},"modified":"2021-06-20T10:02:29","modified_gmt":"2021-06-20T05:32:29","slug":"interfacing-1-3-inch-oled-spi-i2c-display-module-with-arduino","status":"publish","type":"post","link":"https:\/\/thecaferobot.com\/learn\/interfacing-1-3-inch-oled-spi-i2c-display-module-with-arduino\/","title":{"rendered":"\u0622\u0645\u0648\u0632\u0634 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u0646\u0645\u0627\u06cc\u0634\u06af\u0631 1.3 \u0627\u06cc\u0646\u0686 OLED \u0628\u0627 \u0631\u0627\u0628\u0637 I2C\/SPI \u0628\u0627 \u0622\u0631\u062f\u0648\u06cc\u0646\u0648"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"21733\" class=\"elementor elementor-21733\">\n\t\t\t\t\t\t<div class=\"elementor-inner\">\n\t\t\t\t<div class=\"elementor-section-wrap\">\n\t\t\t\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-afbb4cd elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"afbb4cd\" data-element_type=\"section\">\r\n\t\t\t\r\n\t\t\t\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\r\n\t\t\t\t\t\t\t\t<div class=\"elementor-row\">\r\n\t\t\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-9a610cb\" data-id=\"9a610cb\" data-element_type=\"column\">\r\n\r\n\t\t\t\t\t<div class=\"elementor-column-wrap elementor-element-populated\">\r\n\t\t\t\t\t\t\t<div class=\"elementor-widget-wrap\">\r\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-56a1a78b elementor-widget elementor-widget-heading\" data-id=\"56a1a78b\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">\u0648\u06cc\u0698\u06af\u06cc \u0647\u0627\u06cc \u0646\u0645\u0627\u06cc\u0634\u06af\u0631 1.3 \u0627\u06cc\u0646\u0686 OLED<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-689c46ea elementor-widget elementor-widget-text-editor\" data-id=\"689c46ea\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-text-editor elementor-clearfix\">\n\t\t\t\t<p>\u0646\u0645\u0627\u06cc\u0634\u06af\u0631\u0647\u0627\u06cc OLED\u060c \u0646\u0645\u0627\u06cc\u0634\u06af\u0631\u0647\u0627\u06cc\u06cc \u0628\u0627 \u06a9\u0646\u062a\u0631\u0627\u0633\u062a \u0648 \u0631\u0632\u0648\u0644\u0648\u0634\u0646 \u0628\u0627\u0644\u0627 \u0645\u06cc\u200c\u0628\u0627\u0634\u0646\u062f\u060c \u0627\u0632 \u0627\u06cc\u0646 \u0631\u0648 \u0642\u0627\u0628\u0644\u06cc\u062a \u062e\u0648\u0627\u0646\u0627\u06cc\u06cc \u0632\u06cc\u0627\u062f\u06cc \u0631\u0627 \u0628\u0631\u0627\u06cc \u06a9\u0627\u0631\u0628\u0631 \u0641\u0631\u0627\u0647\u0645 \u0645\u06cc\u200c\u06a9\u0646\u0646\u062f. \u0646\u0645\u0627\u06cc\u0634\u06af\u0631\u0647\u0627\u06cc OLED \u0646\u06cc\u0627\u0632 \u0628\u0647 \u0646\u0648\u0631 \u067e\u0633 \u0632\u0645\u06cc\u0646\u0647 Backlight \u0646\u062f\u0627\u0631\u0646\u062f \u0648 \u067e\u06cc\u06a9\u0633\u0644 \u0647\u0627 \u062e\u0648\u062f\u0634\u0627\u0646 \u0646\u0648\u0631 \u0627\u0641\u0634\u0627\u0646\u06cc \u0645\u06cc\u200c\u06a9\u0646\u0646\u062f \u0648 \u062f\u0631 \u0645\u0642\u0627\u06cc\u0633\u0647 \u0628\u0627 LCD\u0647\u0627\u06cc \u06a9\u0631\u06cc\u0633\u062a\u0627\u0644 \u0645\u0627\u06cc\u0639\u060c \u0628\u0627\u0631\u06cc\u06a9\u200c\u062a\u0631 \u0648 \u0634\u0641\u0627\u0641\u200c\u062a\u0631 \u0628\u0648\u062f\u0647 \u0648 \u06a9\u0646\u062a\u0631\u0627\u0633\u062a \u0628\u0627\u0644\u0627\u062a\u0631 \u0648 \u0645\u0635\u0631\u0641 \u062a\u0648\u0627\u0646 \u06a9\u0645\u062a\u0631\u06cc \u062f\u0627\u0631\u0646\u062f. \u0686\u06cc\u067e \u062f\u0631\u0627\u06cc\u0648\u0631 \u0627\u06cc\u0646 \u0645\u0627\u0698\u0648\u0644 SH1106 \u0627\u0633\u062a \u06a9\u0647 \u062a\u0648\u0627\u0646\u0627\u06cc\u06cc \u0627\u0631\u062a\u0628\u0627\u0637 I2C\/SPI \u0631\u0627 \u0628\u0631\u0627\u06cc \u0627\u06cc\u0646 \u0645\u0627\u0698\u0648\u0644 \u0641\u0631\u0627\u0647\u0645 \u0645\u06cc\u200c\u0622\u0648\u0631\u062f.<\/p>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-1bcccbbe elementor-widget elementor-widget-image\" data-id=\"1bcccbbe\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-image\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/thecaferobot.com\/learn\/wp-content\/uploads\/2021\/01\/OLED-1.3INCH-1.jpg\" data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-title=\"OLED-1.3INCH-1.jpg\" e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6MjE3MzcsInVybCI6Imh0dHBzOlwvXC90aGVjYWZlcm9ib3QuY29tXC9sZWFyblwvd3AtY29udGVudFwvdXBsb2Fkc1wvMjAyMVwvMDFcL09MRUQtMS4zSU5DSC0xLmpwZyJ9\">\n\t\t\t\t\t\t\t<img width=\"600\" height=\"600\" src=\"https:\/\/thecaferobot.com\/learn\/wp-content\/uploads\/2021\/01\/OLED-1.3INCH-1.jpg\" class=\"attachment-large size-large\" alt=\"\u0646\u0645\u0627\u06cc\u0634\u06af\u0631 1.3 \u0627\u06cc\u0646\u0686 OLED\" loading=\"lazy\" \/>\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-3c98afe2 elementor-widget elementor-widget-text-editor\" data-id=\"3c98afe2\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-text-editor elementor-clearfix\">\n\t\t\t\t<p>\u062c\u0647\u062a \u062f\u0631\u06cc\u0627\u0641\u062a \u062f\u06cc\u062a\u0627\u0634\u06cc\u062a \u0646\u0645\u0627\u06cc\u0634\u06af\u0631 1.3 \u0627\u06cc\u0646\u0686 OLED \u0627\u06cc\u0646\u062c\u0627 \u06a9\u0644\u06cc\u06a9 \u06a9\u0646\u06cc\u062f.<\/p><p><div class='w3eden'><!-- WPDM Link Template: Default Template -->\n\n<div class=\"link-template-default card mb-2\">\n    <div class=\"card-body\">\n        <div class=\"media\">\n            <div class=\"mr-3 img-48\"><img class=\"wpdm_icon\" alt=\"Icon\" src=\"https:\/\/thecaferobot.com\/learn\/wp-content\/plugins\/download-manager\/assets\/file-type-icons\/pdf.svg\" \/><\/div>\n            <div class=\"media-body\">\n                <h3 class=\"package-title\"><a href='https:\/\/thecaferobot.com\/learn\/download\/1-3-inch-oled-spi-i2c-display-module-datasheet\/'>1.3 INCH OLED SPI\/I2C Display Module Datasheet<\/a><\/h3>\n                <div class=\"text-muted text-small\"><i class=\"fas fa-copy\"><\/i> 1 file(s) <i class=\"fas fa-hdd ml-3\"><\/i> 1.18 MB<\/div>\n            <\/div>\n            <div class=\"ml-3\">\n                <a class='wpdm-download-link download-on-click btn btn-primary ' rel='nofollow' href='#' data-downloadurl=\"https:\/\/thecaferobot.com\/learn\/download\/1-3-inch-oled-spi-i2c-display-module-datasheet\/?wpdmdl=21736&#038;refresh=6a21f55d3f53c1780610397\">Download<\/a>\n            <\/div>\n        <\/div>\n    <\/div>\n<\/div>\n\n<\/div><\/p>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-f75627e elementor-widget elementor-widget-heading\" data-id=\"f75627e\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">\u0645\u0639\u0631\u0641\u06cc \u067e\u0627\u06cc\u0647 \u0647\u0627 (Pinout) \u0646\u0645\u0627\u06cc\u0634\u06af\u0631 1.3 \u0627\u06cc\u0646\u0686 OLED<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-80b0296 elementor-widget elementor-widget-text-editor\" data-id=\"80b0296\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-text-editor elementor-clearfix\">\n\t\t\t\t<p>\u0646\u0645\u0627\u06cc\u0634\u06af\u0631 1.3 \u0627\u06cc\u0646\u0686 OLED \u062f\u0627\u0631\u0627\u06cc 7 \u067e\u0627\u06cc\u0647 \u0628\u0647 \u0634\u0631\u062d \u0632\u06cc\u0631 \u0627\u0633\u062a:<\/p><ul><li><strong>VCC<\/strong><strong>:<\/strong> \u062a\u063a\u0630\u06cc\u0647 \u0646\u0645\u0627\u06cc\u0634\u06af\u0631 \u2013 5 \u0648\u0644\u062a<\/li><li><strong>GND<\/strong><strong>:<\/strong> \u0632\u0645\u06cc\u0646<\/li><li><strong>SLC<\/strong>: \u0647\u0645\u0632\u0645\u0627\u0646 \u0633\u0627\u0632\u06cc \u0628\u0631\u0627\u06cc \u067e\u0631\u0648\u062a\u06a9\u0644 I2C<\/li><li><strong>SDA<\/strong>: \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0628\u0631\u0627\u06cc \u067e\u0631\u0648\u062a\u06a9\u0644 I2C<\/li><li><strong>CS<\/strong><strong>: <\/strong>\u0627\u0646\u062a\u062e\u0627\u0628 \u0645\u0627\u0698\u0648\u0644<\/li><li><strong>D\/C<\/strong><strong>: <\/strong>\u062f\u06cc\u062a\u0627\/\u062f\u0633\u062a\u0648\u0631<\/li><li><strong>RES<\/strong><strong>: <\/strong>\u0631\u06cc\u0633\u062a \u0645\u0627\u0698\u0648\u0644<\/li><\/ul><p>\u067e\u06cc\u0646 \u0627\u0648\u062a (Pinout) \u0627\u06cc\u0646 \u0646\u0645\u0627\u06cc\u0634\u06af\u0631 \u0631\u0627 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u062f\u0631 \u062a\u0635\u0648\u06cc\u0631 \u0632\u06cc\u0631 \u0645\u0634\u0627\u0647\u062f\u0647 \u06a9\u0646\u06cc\u062f.<\/p>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-5b8a525f elementor-widget elementor-widget-image\" data-id=\"5b8a525f\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-image\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/thecaferobot.com\/learn\/wp-content\/uploads\/2021\/01\/OLED-1.3INCH-pin.jpg\" data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-title=\"OLED-1.3INCH-pin.jpg\" e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6MjE3MzgsInVybCI6Imh0dHBzOlwvXC90aGVjYWZlcm9ib3QuY29tXC9sZWFyblwvd3AtY29udGVudFwvdXBsb2Fkc1wvMjAyMVwvMDFcL09MRUQtMS4zSU5DSC1waW4uanBnIn0%3D\">\n\t\t\t\t\t\t\t<img width=\"800\" height=\"600\" src=\"https:\/\/thecaferobot.com\/learn\/wp-content\/uploads\/2021\/01\/OLED-1.3INCH-pin.jpg\" class=\"attachment-large size-large\" alt=\"\u067e\u06cc\u0646 \u0627\u0648\u062a Pinout \u0646\u0645\u0627\u06cc\u0634\u06af\u0631 1.3 \u0627\u06cc\u0646\u0686 OLED\" loading=\"lazy\" \/>\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-2ffd052f elementor-widget elementor-widget-heading\" data-id=\"2ffd052f\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">\u0644\u0648\u0627\u0632\u0645\u06cc \u06a9\u0647 \u0628\u0647 \u0622\u0646 \u0627\u062d\u062a\u06cc\u0627\u062c \u062f\u0627\u0631\u06cc\u062f<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-6899c875 elementor-widget elementor-widget-image\" data-id=\"6899c875\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-image\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/thecaferobot.com\/learn\/wp-content\/uploads\/2021\/01\/OLED-1.3INCH-Required-Materials.jpg\" data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-title=\"OLED-1.3INCH-Required-Materials.jpg\" e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6MjE3MzksInVybCI6Imh0dHBzOlwvXC90aGVjYWZlcm9ib3QuY29tXC9sZWFyblwvd3AtY29udGVudFwvdXBsb2Fkc1wvMjAyMVwvMDFcL09MRUQtMS4zSU5DSC1SZXF1aXJlZC1NYXRlcmlhbHMuanBnIn0%3D\">\n\t\t\t\t\t\t\t<img width=\"600\" height=\"500\" src=\"https:\/\/thecaferobot.com\/learn\/wp-content\/uploads\/2021\/01\/OLED-1.3INCH-Required-Materials.jpg\" class=\"attachment-large size-large\" alt=\"\" loading=\"lazy\" \/>\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-43b6b049 elementor-widget elementor-widget-heading\" data-id=\"43b6b049\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">\u0642\u0637\u0639\u0627\u062a \u0645\u0648\u0631\u062f \u0646\u06cc\u0627\u0632 <\/h3>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-19310406 elementor-widget elementor-widget-html\" data-id=\"19310406\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<div class=\"table-2\">\r\n<table width=\"100%\" class=\"zebra\">\r\n<tbody>\r\n\r\n<tr>\r\n\t<td width=\"70%\">\u0622\u0631\u062f\u0648\u06cc\u0646\u0648 UNO R3 \r\n<\/td>\r\n\t<td class=\"center\" width=\"10%\">\u00d7<\/td>\r\n    <td class=\"center\" width=\"10%\">1<\/td>\r\n\t<td class=\"center\" width=\"10%\"><a href=\"http:\/\/thecaferobot.com\/store\/arduino-uno-r3\" target=\"_blank\"><i class=\"fa fa-shopping-cart\" style=\"\"><\/i><\/a><\/td>\r\n<\/tr>\r\n<tr>\r\n\t<td width=\"70%\"> \u0645\u0627\u0698\u0648\u0644 \u0646\u0645\u0627\u06cc\u0634\u06af\u0631 1.3 \u0627\u06cc\u0646\u0686 OLED \u062f\u0627\u0631\u0627\u06cc \u0627\u0631\u062a\u0628\u0627\u0637 SPI\/I2C \r\n<\/td>\r\n\t<td class=\"center\" width=\"10%\">\u00d7<\/td>\r\n    <td class=\"center\" width=\"10%\">1<\/td>\r\n\t<td class=\"center\" width=\"10%\"><a href=\"https:\/\/thecaferobot.com\/store\/1-3inch-oled-b-waveshare\" target=\"_blank\"><i class=\"fa fa-shopping-cart\" style=\"\"><\/i><\/a><\/td>\r\n<\/tr>\r\n<tr>\r\n\t<td width=\"70%\">\u0633\u06cc\u0645 \u062c\u0627\u0645\u067e\u0631 \r\n<\/td>\r\n\t<td class=\"center\" width=\"10%\">\u00d7<\/td>\r\n    <td class=\"center\" width=\"10%\">1<\/td>\r\n\t<td class=\"center\" width=\"10%\"><a href=\"https:\/\/thecaferobot.com\/store\/female-male-40p-21cm\" target=\"_blank\"><i class=\"fa fa-shopping-cart\" style=\"\"><\/i><\/a><\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<\/div>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-6542a4d2 elementor-widget elementor-widget-heading\" data-id=\"6542a4d2\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">\u0646\u0631\u0645 \u0627\u0641\u0632\u0627\u0631\u0647\u0627\u06cc \u0645\u0648\u0631\u062f \u0646\u06cc\u0627\u0632<\/h3>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-4fe688db elementor-widget elementor-widget-html\" data-id=\"4fe688db\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<div class=\"table-2\">\r\n<table width=\"100%\" class=\"zebra\">\r\n<tbody>\r\n\r\n<tr>\r\n\t<td width=\"90%\">\u0622\u0631\u062f\u0648\u06cc\u0646\u0648 IDE<\/td>\r\n\t<td class=\"center\" width=\"10%\"><a href=\"https:\/\/www.arduino.cc\/en\/Main\/Software\" target=\"_blank\"><i class=\"fa fa-info\" style=\"\"><\/i><\/a><\/td>\r\n<\/tr>\r\n\r\n\r\n<\/tbody>\r\n<\/table>\r\n<\/div>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-1cdb2a74 elementor-widget elementor-widget-heading\" data-id=\"1cdb2a74\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">\u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u0646\u0645\u0627\u06cc\u0634\u06af\u0631 1.3 \u0627\u06cc\u0646\u0686 OLED \u0628\u0627 \u0622\u0631\u062f\u0648\u06cc\u0646\u0648<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-3f2cb022 elementor-widget elementor-widget-heading\" data-id=\"3f2cb022\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">\u06af\u0627\u0645 \u0627\u0648\u0644: \u0633\u06cc\u0645 \u0628\u0646\u062f\u06cc<\/h3>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-350ec9b8 elementor-widget elementor-widget-text-editor\" data-id=\"350ec9b8\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-text-editor elementor-clearfix\">\n\t\t\t\t<p>\u0627\u0628\u062a\u062f\u0627 \u0628\u0631\u0627\u06cc \u062a\u0646\u0638\u06cc\u0645 \u0646\u0645\u0627\u06cc\u0634\u06af\u0631 \u0628\u0631 \u0631\u0648\u06cc \u062d\u0627\u0644\u062a I2C \u0628\u0631\u0631\u0633\u06cc \u0646\u0645\u0627\u06cc\u06cc\u062f \u06a9\u0647 \u0645\u0634\u0627\u0628\u0647 \u0639\u06a9\u0633 \u0632\u06cc\u0631 BS1 \u062f\u0631 \u062d\u0627\u0644\u062a 1 \u0628\u0627\u0634\u062f.<\/p>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-2945158e elementor-widget elementor-widget-image\" data-id=\"2945158e\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-image\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/thecaferobot.com\/learn\/wp-content\/uploads\/2021\/01\/OLED-1.3INCH-3.jpg\" data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-title=\"OLED-1.3INCH-3.jpg\" e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6MjE3NDAsInVybCI6Imh0dHBzOlwvXC90aGVjYWZlcm9ib3QuY29tXC9sZWFyblwvd3AtY29udGVudFwvdXBsb2Fkc1wvMjAyMVwvMDFcL09MRUQtMS4zSU5DSC0zLmpwZyJ9\">\n\t\t\t\t\t\t\t<img width=\"600\" height=\"600\" src=\"https:\/\/thecaferobot.com\/learn\/wp-content\/uploads\/2021\/01\/OLED-1.3INCH-3.jpg\" class=\"attachment-large size-large\" alt=\"\" loading=\"lazy\" \/>\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-6c9de128 elementor-widget elementor-widget-text-editor\" data-id=\"6c9de128\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-text-editor elementor-clearfix\">\n\t\t\t\t<p>\u0645\u0637\u0627\u0628\u0642 \u0645\u062f\u0627\u0631 \u0632\u06cc\u0631\u060c \u0646\u0645\u0627\u06cc\u0634\u06af\u0631 \u0631\u0627 \u0628\u0647 \u0622\u0631\u062f\u0648\u06cc\u0646\u0648 \u0648\u0635\u0644 \u06a9\u0646\u06cc\u062f.<\/p>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-7743a737 elementor-widget elementor-widget-image\" data-id=\"7743a737\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-image\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/thecaferobot.com\/learn\/wp-content\/uploads\/2021\/01\/OLED-1.3INCH-wire.jpg\" data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-title=\"OLED-1.3INCH-wire.jpg\" e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6MjE3NDEsInVybCI6Imh0dHBzOlwvXC90aGVjYWZlcm9ib3QuY29tXC9sZWFyblwvd3AtY29udGVudFwvdXBsb2Fkc1wvMjAyMVwvMDFcL09MRUQtMS4zSU5DSC13aXJlLmpwZyJ9\">\n\t\t\t\t\t\t\t<img width=\"800\" height=\"600\" src=\"https:\/\/thecaferobot.com\/learn\/wp-content\/uploads\/2021\/01\/OLED-1.3INCH-wire.jpg\" class=\"attachment-large size-large\" alt=\"\u0633\u06cc\u0645 \u0628\u0646\u062f\u06cc \u0645\u062f\u0627\u0631 \u0627\u062a\u0635\u0627\u0644 \u0646\u0645\u0627\u06cc\u0634\u06af\u0631 1.3 \u0627\u06cc\u0646\u0686 \u0628\u0647 \u0622\u0631\u062f\u0648\u06cc\u0646\u0648\" loading=\"lazy\" \/>\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-4662f6ec elementor-widget elementor-widget-heading\" data-id=\"4662f6ec\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">\u06af\u0627\u0645 \u062f\u0648\u0645: \u06a9\u062a\u0627\u0628\u062e\u0627\u0646\u0647<\/h3>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-6a480dfd elementor-widget elementor-widget-text-editor\" data-id=\"6a480dfd\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-text-editor elementor-clearfix\">\n\t\t\t\t<p>\u0627\u0628\u062a\u062f\u0627 \u06a9\u062a\u0627\u0628\u062e\u0627\u0646\u0647 \u0632\u06cc\u0631 \u0631\u0627\u00a0 \u0628\u0631 \u0622\u0631\u062f\u0648\u06cc\u0646\u0648\u06cc \u062e\u0648\u062f \u0646\u0635\u0628 \u06a9\u0646\u06cc\u062f.\u00a0<\/p><p><a href=\"https:\/\/github.com\/wonho-maker\/Adafruit_SH1106\">https:\/\/github.com\/wonho-maker\/Adafruit_SH1106<\/a><\/p><p><a href=\"https:\/\/github.com\/adafruit\/Adafruit-GFX-Library\">https:\/\/github.com\/adafruit\/Adafruit-GFX-Library<\/a><\/p>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<section class=\"elementor-section elementor-inner-section elementor-element elementor-element-31f06cf7 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"31f06cf7\" data-element_type=\"section\">\r\n\t\t\t\r\n\t\t\t\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\r\n\t\t\t\t\t\t\t\t<div class=\"elementor-row\">\r\n\t\t\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-inner-column elementor-element elementor-element-2be07724\" data-id=\"2be07724\" data-element_type=\"column\" data-settings=\"{&quot;background_background&quot;:&quot;gradient&quot;}\">\r\n\r\n\t\t\t\t\t<div class=\"elementor-column-wrap elementor-element-populated\">\r\n\t\t\t\t\t\t\t<div class=\"elementor-widget-wrap\">\r\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-68fa842 elementor-view-stacked elementor-widget__width-auto elementor-absolute elementor-shape-circle elementor-widget elementor-widget-icon\" data-id=\"68fa842\" data-element_type=\"widget\" data-settings=\"{&quot;_position&quot;:&quot;absolute&quot;}\" data-widget_type=\"icon.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-icon-wrapper\">\n\t\t\t<div class=\"elementor-icon\">\n\t\t\t<i aria-hidden=\"true\" class=\"far fa-lightbulb\"><\/i>\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-27f5be8 elementor-widget elementor-widget-heading\" data-id=\"27f5be8\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h5 class=\"elementor-heading-title elementor-size-default\">\u062a\u0648\u062c\u0647<\/h5>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-4dfffe14 elementor-widget elementor-widget-text-editor\" data-id=\"4dfffe14\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-text-editor elementor-clearfix\">\n\t\t\t\t<p>\u0627\u06af\u0631 \u0646\u06cc\u0627\u0632 \u0628\u0647 \u0631\u0627\u0647\u0646\u0645\u0627\u06cc\u06cc \u0628\u06cc\u0634\u062a\u0631 \u0628\u0631\u0627\u06cc <a href=\"https:\/\/thecaferobot.com\/learn\/how-to-install-an-arduino-library\/\">\u0646\u0635\u0628 \u06a9\u062a\u0627\u0628\u062e\u0627\u0646\u0647 \u0628\u0631 \u0631\u0648\u06cc \u0622\u0631\u062f\u0648\u06cc\u0646\u0648<\/a> \u062f\u0627\u0631\u06cc\u062f\u060c \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0628\u0647 \u0622\u0645\u0648\u0632\u0634 \u0646\u0635\u0628 \u06a9\u062a\u0627\u0628\u062e\u0627\u0646\u0647 \u0628\u0631 \u0622\u0631\u062f\u0648\u06cc\u0646\u0648 \u0645\u0631\u0627\u062c\u0639\u0647 \u06a9\u0646\u06cc\u062f.<\/p>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t<\/div>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t<\/section>\r\n\t\t\t\t<div class=\"elementor-element elementor-element-1b60d411 elementor-widget elementor-widget-heading\" data-id=\"1b60d411\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">\u06af\u0627\u0645 \u0633\u0648\u0645: \u06a9\u062f<\/h3>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-4de3e976 elementor-widget elementor-widget-text-editor\" data-id=\"4de3e976\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-text-editor elementor-clearfix\">\n\t\t\t\t<p>\u06a9\u062f \u0632\u06cc\u0631 \u0631\u0627 \u0631\u0648\u06cc \u0628\u0631\u062f \u0622\u0631\u062f\u0648\u06cc\u0646\u0648\u06cc \u062e\u0648\u062f \u0622\u067e\u0644\u0648\u062f \u06a9\u0646\u06cc\u062f.<\/p>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-4aacd6a1 elementor-widget elementor-widget-html\" data-id=\"4aacd6a1\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<pre class=\"line-numbers lang-arduino\"><code>  \/*\r\n  modified on Sep 28, 2020\r\n  Modified by MohammedDamirchi from https:\/\/github.com\/adafruit\/Adafruit_SSD1306 , https:\/\/github.com\/adafruit\/Adafruit-GFX-Library\r\n  https:\/\/electropeak.com\/learn\/\r\n*\/\r\n\r\n\/*********************************************************************\r\nThis is an example for our Monochrome OLEDs based on SSD1306 drivers\r\n\r\n  Pick one up today in the adafruit shop!\r\n  ------&gt; http:\/\/www.adafruit.com\/category\/63_98\r\n\r\nThis example is for a 128x64 size display using I2C to communicate\r\n3 pins are required to interface (2 I2C and one reset)\r\n\r\nAdafruit invests time and resources providing this open source code, \r\nplease support Adafruit and open-source hardware by purchasing \r\nproducts from Adafruit!\r\n\r\nWritten by Limor Fried\/Ladyada  for Adafruit Industries.  \r\nBSD license, check license.txt for more information\r\nAll text above, and the splash screen must be included in any redistribution\r\n*********************************************************************\/\r\n\r\n\/*********************************************************************\r\nI change the adafruit SSD1306 to SH1106\r\n\r\nSH1106 driver don't provide several functions such as scroll commands.\r\n\r\n*********************************************************************\/\r\n\r\n#include &lt;SPI.h&gt;\r\n#include &lt;Wire.h&gt;\r\n#include &lt;Adafruit_GFX.h&gt;\r\n#include &lt;Adafruit_SH1106.h&gt;\r\n\r\n#define OLED_RESET 4\r\nAdafruit_SH1106 display(OLED_RESET);\r\n\r\n#define NUMFLAKES 10\r\n#define XPOS 0\r\n#define YPOS 1\r\n#define DELTAY 2\r\n\r\n\r\n#define LOGO16_GLCD_HEIGHT 16 \r\n#define LOGO16_GLCD_WIDTH  16 \r\nstatic const unsigned char PROGMEM logo16_glcd_bmp[] =\r\n{ B00000000, B11000000,\r\n  B00000001, B11000000,\r\n  B00000001, B11000000,\r\n  B00000011, B11100000,\r\n  B11110011, B11100000,\r\n  B11111110, B11111000,\r\n  B01111110, B11111111,\r\n  B00110011, B10011111,\r\n  B00011111, B11111100,\r\n  B00001101, B01110000,\r\n  B00011011, B10100000,\r\n  B00111111, B11100000,\r\n  B00111111, B11110000,\r\n  B01111100, B11110000,\r\n  B01110000, B01110000,\r\n  B00000000, B00110000 };\r\n\r\n#if (SH1106_LCDHEIGHT != 64)\r\n#error(&quot;Height incorrect, please fix Adafruit_SH1106.h!&quot;);\r\n#endif\r\n\r\nvoid setup()   {                \r\n  Serial.begin(9600);\r\n\r\n  \/\/ by default, we'll generate the high voltage from the 3.3v line internally! (neat!)\r\n  display.begin(SH1106_SWITCHCAPVCC, 0x3C);  \/\/ initialize with the I2C addr 0x3D (for the 128x64)\r\n  \/\/ init done\r\n  \r\n  \/\/ Show image buffer on the display hardware.\r\n  \/\/ Since the buffer is intialized with an Adafruit splashscreen\r\n  \/\/ internally, this will display the splashscreen.\r\n  display.display();\r\n  delay(2000);\r\n\r\n  \/\/ Clear the buffer.\r\n  display.clearDisplay();\r\n\r\n  \/\/ draw a single pixel\r\n  display.drawPixel(10, 10, WHITE);\r\n  \/\/ Show the display buffer on the hardware.\r\n  \/\/ NOTE: You _must_ call display after making any drawing commands\r\n  \/\/ to make them visible on the display hardware!\r\n  display.display();\r\n  delay(2000);\r\n  display.clearDisplay();\r\n\r\n  \/\/ draw many lines\r\n  testdrawline();\r\n  display.display();\r\n  delay(2000);\r\n  display.clearDisplay();\r\n\r\n  \/\/ draw rectangles\r\n  testdrawrect();\r\n  display.display();\r\n  delay(2000);\r\n  display.clearDisplay();\r\n\r\n  \/\/ draw multiple rectangles\r\n  testfillrect();\r\n  display.display();\r\n  delay(2000);\r\n  display.clearDisplay();\r\n\r\n  \/\/ draw mulitple circles\r\n  testdrawcircle();\r\n  display.display();\r\n  delay(2000);\r\n  display.clearDisplay();\r\n\r\n  \/\/ draw a white circle, 10 pixel radius\r\n  display.fillCircle(display.width()\/2, display.height()\/2, 10, WHITE);\r\n  display.display();\r\n  delay(2000);\r\n  display.clearDisplay();\r\n\r\n  testdrawroundrect();\r\n  delay(2000);\r\n  display.clearDisplay();\r\n\r\n  testfillroundrect();\r\n  delay(2000);\r\n  display.clearDisplay();\r\n\r\n  testdrawtriangle();\r\n  delay(2000);\r\n  display.clearDisplay();\r\n   \r\n  testfilltriangle();\r\n  delay(2000);\r\n  display.clearDisplay();\r\n\r\n  \/\/ draw the first ~12 characters in the font\r\n  testdrawchar();\r\n  display.display();\r\n  delay(2000);\r\n  display.clearDisplay();\r\n\r\n  \/\/ draw scrolling text\r\n \/* testscrolltext();\r\n  delay(2000);\r\n  display.clearDisplay();*\/\r\n\r\n  \/\/ text display tests\r\n  display.setTextSize(1);\r\n  display.setTextColor(WHITE);\r\n  display.setCursor(0,0);\r\n  display.println(&quot;Hello, world!&quot;);\r\n  display.setTextColor(BLACK, WHITE); \/\/ 'inverted' text\r\n  display.println(3.141592);\r\n  display.setTextSize(2);\r\n  display.setTextColor(WHITE);\r\n  display.print(&quot;0x&quot;); display.println(0xDEADBEEF, HEX);\r\n  display.display();\r\n  delay(2000);\r\n\r\n  \/\/ miniature bitmap display\r\n  display.clearDisplay();\r\n  display.drawBitmap(30, 16,  logo16_glcd_bmp, 16, 16, 1);\r\n  display.display();\r\n\r\n  \/\/ invert the display\r\n  display.invertDisplay(true);\r\n  delay(1000); \r\n  display.invertDisplay(false);\r\n  delay(1000); \r\n\r\n  \/\/ draw a bitmap icon and 'animate' movement\r\n  testdrawbitmap(logo16_glcd_bmp, LOGO16_GLCD_HEIGHT, LOGO16_GLCD_WIDTH);\r\n}\r\n\r\n\r\nvoid loop() {\r\n  \r\n}\r\n\r\n\r\nvoid testdrawbitmap(const uint8_t *bitmap, uint8_t w, uint8_t h) {\r\n  uint8_t icons[NUMFLAKES][3];\r\n \r\n  \/\/ initialize\r\n  for (uint8_t f=0; f&lt; NUMFLAKES; f++) {\r\n    icons[f][XPOS] = random(display.width());\r\n    icons[f][YPOS] = 0;\r\n    icons[f][DELTAY] = random(5) + 1;\r\n    \r\n    Serial.print(&quot;x: &quot;);\r\n    Serial.print(icons[f][XPOS], DEC);\r\n    Serial.print(&quot; y: &quot;);\r\n    Serial.print(icons[f][YPOS], DEC);\r\n    Serial.print(&quot; dy: &quot;);\r\n    Serial.println(icons[f][DELTAY], DEC);\r\n  }\r\n\r\n  while (1) {\r\n    \/\/ draw each icon\r\n    for (uint8_t f=0; f&lt; NUMFLAKES; f++) {\r\n      display.drawBitmap(icons[f][XPOS], icons[f][YPOS], logo16_glcd_bmp, w, h, WHITE);\r\n    }\r\n    display.display();\r\n    delay(200);\r\n    \r\n    \/\/ then erase it + move it\r\n    for (uint8_t f=0; f&lt; NUMFLAKES; f++) {\r\n      display.drawBitmap(icons[f][XPOS], icons[f][YPOS],  logo16_glcd_bmp, w, h, BLACK);\r\n      \/\/ move it\r\n      icons[f][YPOS] += icons[f][DELTAY];\r\n      \/\/ if its gone, reinit\r\n      if (icons[f][YPOS] &gt; display.height()) {\r\n\ticons[f][XPOS] = random(display.width());\r\n\ticons[f][YPOS] = 0;\r\n\ticons[f][DELTAY] = random(5) + 1;\r\n      }\r\n    }\r\n   }\r\n}\r\n\r\n\r\nvoid testdrawchar(void) {\r\n  display.setTextSize(1);\r\n  display.setTextColor(WHITE);\r\n  display.setCursor(0,0);\r\n\r\n  for (uint8_t i=0; i &lt; 168; i++) {\r\n    if (i == '\\n') continue;\r\n    display.write(i);\r\n    if ((i &gt; 0) &amp;&amp; (i % 21 == 0))\r\n      display.println();\r\n  }    \r\n  display.display();\r\n}\r\n\r\nvoid testdrawcircle(void) {\r\n  for (int16_t i=0; i&lt;display.height(); i+=2) {\r\n    display.drawCircle(display.width()\/2, display.height()\/2, i, WHITE);\r\n    display.display();\r\n  }\r\n}\r\n\r\nvoid testfillrect(void) {\r\n  uint8_t color = 1;\r\n  for (int16_t i=0; i&lt;display.height()\/2; i+=3) {\r\n    \/\/ alternate colors\r\n    display.fillRect(i, i, display.width()-i*2, display.height()-i*2, color%2);\r\n    display.display();\r\n    color++;\r\n  }\r\n}\r\n\r\nvoid testdrawtriangle(void) {\r\n  for (int16_t i=0; i&lt;min(display.width(),display.height())\/2; i+=5) {\r\n    display.drawTriangle(display.width()\/2, display.height()\/2-i,\r\n                     display.width()\/2-i, display.height()\/2+i,\r\n                     display.width()\/2+i, display.height()\/2+i, WHITE);\r\n    display.display();\r\n  }\r\n}\r\n\r\nvoid testfilltriangle(void) {\r\n  uint8_t color = WHITE;\r\n  for (int16_t i=min(display.width(),display.height())\/2; i&gt;0; i-=5) {\r\n    display.fillTriangle(display.width()\/2, display.height()\/2-i,\r\n                     display.width()\/2-i, display.height()\/2+i,\r\n                     display.width()\/2+i, display.height()\/2+i, WHITE);\r\n    if (color == WHITE) color = BLACK;\r\n    else color = WHITE;\r\n    display.display();\r\n  }\r\n}\r\n\r\nvoid testdrawroundrect(void) {\r\n  for (int16_t i=0; i&lt;display.height()\/2-2; i+=2) {\r\n    display.drawRoundRect(i, i, display.width()-2*i, display.height()-2*i, display.height()\/4, WHITE);\r\n    display.display();\r\n  }\r\n}\r\n\r\nvoid testfillroundrect(void) {\r\n  uint8_t color = WHITE;\r\n  for (int16_t i=0; i&lt;display.height()\/2-2; i+=2) {\r\n    display.fillRoundRect(i, i, display.width()-2*i, display.height()-2*i, display.height()\/4, color);\r\n    if (color == WHITE) color = BLACK;\r\n    else color = WHITE;\r\n    display.display();\r\n  }\r\n}\r\n   \r\nvoid testdrawrect(void) {\r\n  for (int16_t i=0; i&lt;display.height()\/2; i+=2) {\r\n    display.drawRect(i, i, display.width()-2*i, display.height()-2*i, WHITE);\r\n    display.display();\r\n  }\r\n}\r\n\r\nvoid testdrawline() {  \r\n  for (int16_t i=0; i&lt;display.width(); i+=4) {\r\n    display.drawLine(0, 0, i, display.height()-1, WHITE);\r\n    display.display();\r\n  }\r\n  for (int16_t i=0; i&lt;display.height(); i+=4) {\r\n    display.drawLine(0, 0, display.width()-1, i, WHITE);\r\n    display.display();\r\n  }\r\n  delay(250);\r\n  \r\n  display.clearDisplay();\r\n  for (int16_t i=0; i&lt;display.width(); i+=4) {\r\n    display.drawLine(0, display.height()-1, i, 0, WHITE);\r\n    display.display();\r\n  }\r\n  for (int16_t i=display.height()-1; i&gt;=0; i-=4) {\r\n    display.drawLine(0, display.height()-1, display.width()-1, i, WHITE);\r\n    display.display();\r\n  }\r\n  delay(250);\r\n  \r\n  display.clearDisplay();\r\n  for (int16_t i=display.width()-1; i&gt;=0; i-=4) {\r\n    display.drawLine(display.width()-1, display.height()-1, i, 0, WHITE);\r\n    display.display();\r\n  }\r\n  for (int16_t i=display.height()-1; i&gt;=0; i-=4) {\r\n    display.drawLine(display.width()-1, display.height()-1, 0, i, WHITE);\r\n    display.display();\r\n  }\r\n  delay(250);\r\n\r\n  display.clearDisplay();\r\n  for (int16_t i=0; i&lt;display.height(); i+=4) {\r\n    display.drawLine(display.width()-1, 0, 0, i, WHITE);\r\n    display.display();\r\n  }\r\n  for (int16_t i=0; i&lt;display.width(); i+=4) {\r\n    display.drawLine(display.width()-1, 0, i, display.height()-1, WHITE); \r\n    display.display();\r\n  }\r\n  delay(250);\r\n}\r\n\r\n\/*void testscrolltext(void) {\r\n  display.setTextSize(2);\r\n  display.setTextColor(WHITE);\r\n  display.setCursor(10,0);\r\n  display.clearDisplay();\r\n  display.println(&quot;scroll&quot;);\r\n  display.display();\r\n \r\n  display.startscrollright(0x00, 0x0F);\r\n  delay(2000);\r\n  display.stopscroll();\r\n  delay(1000);\r\n  display.startscrollleft(0x00, 0x0F);\r\n  delay(2000);\r\n  display.stopscroll();\r\n  delay(1000);    \r\n  display.startscrolldiagright(0x00, 0x07);\r\n  delay(2000);\r\n  display.startscrolldiagleft(0x00, 0x07);\r\n  delay(2000);\r\n  display.stopscroll();\r\n}*\/\r\n<\/code><\/pre>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-48ad13aa elementor-widget elementor-widget-text-editor\" data-id=\"48ad13aa\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-text-editor elementor-clearfix\">\n\t\t\t\t<p>\u0627\u06cc\u0646 \u06a9\u062f \u062c\u0647\u062a \u062a\u0633\u062a \u0646\u0645\u0627\u06cc\u0634\u06af\u0631 \u0645\u06cc\u200c\u0628\u0627\u0634\u062f \u0648 \u0627\u0646\u0648\u0627\u0639 \u0627\u0634\u06a9\u0627\u0644 \u0648 \u0637\u0631\u062d\u200c\u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641 \u0631\u0627 \u0628\u0647 \u0635\u0648\u0631\u062a \u06af\u0631\u0627\u0641\u06cc\u06a9\u06cc \u0646\u0645\u0627\u06cc\u0634 \u0645\u06cc\u200c\u062f\u0647\u062f.<\/p>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t<\/div>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t<\/section>\r\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>\u0648\u06cc\u0698\u06af\u06cc \u0647\u0627\u06cc \u0646\u0645\u0627\u06cc\u0634\u06af\u0631 1.3 \u0627\u06cc\u0646\u0686 OLED \u0646\u0645\u0627\u06cc\u0634\u06af\u0631\u0647\u0627\u06cc OLED\u060c \u0646\u0645\u0627\u06cc\u0634\u06af\u0631\u0647\u0627\u06cc\u06cc \u0628\u0627 \u06a9\u0646\u062a\u0631\u0627\u0633\u062a \u0648 \u0631\u0632\u0648\u0644\u0648\u0634\u0646 \u0628\u0627\u0644\u0627 \u0645\u06cc\u200c\u0628\u0627\u0634\u0646\u062f\u060c \u0627\u0632 \u0627\u06cc\u0646 \u0631\u0648 \u0642\u0627\u0628\u0644\u06cc\u062a \u062e\u0648\u0627\u0646\u0627\u06cc\u06cc \u0632\u06cc\u0627\u062f\u06cc \u0631\u0627 \u0628\u0631\u0627\u06cc \u06a9\u0627\u0631\u0628\u0631 \u0641\u0631\u0627\u0647\u0645 \u0645\u06cc\u200c\u06a9\u0646\u0646\u062f. \u0646\u0645\u0627\u06cc\u0634\u06af\u0631\u0647\u0627\u06cc OLED \u0646\u06cc\u0627\u0632 \u0628\u0647 \u0646\u0648\u0631 \u067e\u0633 \u0632\u0645\u06cc\u0646\u0647 Backlight \u0646\u062f\u0627\u0631\u0646\u062f \u0648 \u067e\u06cc\u06a9\u0633\u0644 \u0647\u0627 \u062e\u0648\u062f\u0634\u0627\u0646 \u0646\u0648\u0631 \u0627\u0641\u0634\u0627\u0646\u06cc \u0645\u06cc\u200c\u06a9\u0646\u0646\u062f \u0648 \u062f\u0631 \u0645\u0642\u0627\u06cc\u0633\u0647 \u0628\u0627 LCD\u0647\u0627\u06cc \u06a9\u0631\u06cc\u0633\u062a\u0627\u0644 \u0645\u0627\u06cc\u0639\u060c \u0628\u0627\u0631\u06cc\u06a9\u200c\u062a\u0631 \u0648 \u0634\u0641\u0627\u0641\u200c\u062a\u0631 \u0628\u0648\u062f\u0647 \u0648 \u06a9\u0646\u062a\u0631\u0627\u0633\u062a [&hellip;]<\/p>\n","protected":false},"author":16,"featured_media":21734,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[935],"tags":[4610],"platform":[1071],"bytype":[1075],"difficulty":[1077],"related_products":[4189],"featured_image_src":{"landsacpe":["https:\/\/thecaferobot.com\/learn\/wp-content\/uploads\/2021\/01\/lcd-01-120-teaser.jpg",1200,900,false],"list":["https:\/\/thecaferobot.com\/learn\/wp-content\/uploads\/2021\/01\/lcd-01-120-teaser.jpg",1200,900,false],"medium":["https:\/\/thecaferobot.com\/learn\/wp-content\/uploads\/2021\/01\/lcd-01-120-teaser.jpg",533,400,false],"full":["https:\/\/thecaferobot.com\/learn\/wp-content\/uploads\/2021\/01\/lcd-01-120-teaser.jpg",1200,900,false]},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v14.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u0622\u0645\u0648\u0632\u0634 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u0646\u0645\u0627\u06cc\u0634\u06af\u0631 1.3 \u0627\u06cc\u0646\u0686 OLED \u0628\u0627 \u0631\u0627\u0628\u0637 I2C\/SPI \u0628\u0627 \u0622\u0631\u062f\u0648\u06cc\u0646\u0648 - \u06a9\u0627\u0641\u0647 \u0631\u0628\u0627\u062a<\/title>\n<meta name=\"description\" content=\"\u062f\u0631 \u0622\u0645\u0648\u0632\u0634 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u0646\u0645\u0627\u06cc\u0634\u06af\u0631 1.3 \u0627\u06cc\u0646\u0686 OLED \u06cc\u0627\u062f \u0645\u06cc\u200c\u06af\u06cc\u0631\u06cc\u062f \u0686\u06af\u0648\u0646\u0647 \u0627\u0632 \u0646\u0645\u0627\u06cc\u0634\u06af\u0631 1.3 \u0627\u06cc\u0646\u0686 OLED \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f \u0628\u0647 \u0647\u0645\u0631\u0627\u0647\u060c \u0645\u062b\u0627\u0644\u060c \u06a9\u062f\u060c \u06a9\u062a\u0627\u0628\u062e\u0627\u0646\u0647\" \/>\n<meta name=\"robots\" content=\"index, follow\" \/>\n<meta name=\"googlebot\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta name=\"bingbot\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/thecaferobot.com\/learn\/interfacing-1-3-inch-oled-spi-i2c-display-module-with-arduino\/\" \/>\n<meta property=\"og:locale\" content=\"fa_IR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u0622\u0645\u0648\u0632\u0634 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u0646\u0645\u0627\u06cc\u0634\u06af\u0631 1.3 \u0627\u06cc\u0646\u0686 OLED \u0628\u0627 \u0631\u0627\u0628\u0637 I2C\/SPI \u0628\u0627 \u0622\u0631\u062f\u0648\u06cc\u0646\u0648 - \u06a9\u0627\u0641\u0647 \u0631\u0628\u0627\u062a\" \/>\n<meta property=\"og:description\" content=\"\u062f\u0631 \u0622\u0645\u0648\u0632\u0634 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u0646\u0645\u0627\u06cc\u0634\u06af\u0631 1.3 \u0627\u06cc\u0646\u0686 OLED \u06cc\u0627\u062f \u0645\u06cc\u200c\u06af\u06cc\u0631\u06cc\u062f \u0686\u06af\u0648\u0646\u0647 \u0627\u0632 \u0646\u0645\u0627\u06cc\u0634\u06af\u0631 1.3 \u0627\u06cc\u0646\u0686 OLED \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f \u0628\u0647 \u0647\u0645\u0631\u0627\u0647\u060c \u0645\u062b\u0627\u0644\u060c \u06a9\u062f\u060c \u06a9\u062a\u0627\u0628\u062e\u0627\u0646\u0647\" \/>\n<meta property=\"og:url\" content=\"https:\/\/thecaferobot.com\/learn\/interfacing-1-3-inch-oled-spi-i2c-display-module-with-arduino\/\" \/>\n<meta property=\"og:site_name\" content=\"\u06a9\u0627\u0641\u0647 \u0631\u0628\u0627\u062a\" \/>\n<meta property=\"article:published_time\" content=\"2021-02-15T05:28:20+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-06-20T05:32:29+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/thecaferobot.com\/learn\/wp-content\/uploads\/2021\/01\/lcd-01-120-teaser.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"900\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https:\/\/thecaferobot.com\/learn\/#organization\",\"name\":\"\\u06a9\\u0627\\u0641\\u0647 \\u0631\\u0628\\u0627\\u062a\",\"url\":\"https:\/\/thecaferobot.com\/learn\/\",\"sameAs\":[],\"logo\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/thecaferobot.com\/learn\/#logo\",\"inLanguage\":\"fa-IR\",\"url\":\"https:\/\/thecaferobot.com\/learn\/wp-content\/uploads\/2018\/08\/Logo-small.png\",\"width\":250,\"height\":250,\"caption\":\"\\u06a9\\u0627\\u0641\\u0647 \\u0631\\u0628\\u0627\\u062a\"},\"image\":{\"@id\":\"https:\/\/thecaferobot.com\/learn\/#logo\"}},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/thecaferobot.com\/learn\/#website\",\"url\":\"https:\/\/thecaferobot.com\/learn\/\",\"name\":\"\\u06a9\\u0627\\u0641\\u0647 \\u0631\\u0628\\u0627\\u062a\",\"description\":\"\\u0622\\u0645\\u0648\\u0632\\u0634 \\u0627\\u0644\\u06a9\\u062a\\u0631\\u0648\\u0646\\u06cc\\u06a9\\u060c \\u0631\\u0628\\u0627\\u062a\\u06cc\\u06a9\\u060c \\u0622\\u0631\\u062f\\u0648\\u06cc\\u0646\\u0648 \\u0648 \\u0631\\u0633\\u067e\\u0628\\u0631\\u06cc \\u067e\\u0627\\u06cc\",\"publisher\":{\"@id\":\"https:\/\/thecaferobot.com\/learn\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/thecaferobot.com\/learn\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"fa-IR\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/thecaferobot.com\/learn\/interfacing-1-3-inch-oled-spi-i2c-display-module-with-arduino\/#primaryimage\",\"inLanguage\":\"fa-IR\",\"url\":\"https:\/\/thecaferobot.com\/learn\/wp-content\/uploads\/2021\/01\/lcd-01-120-teaser.jpg\",\"width\":1200,\"height\":900},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/thecaferobot.com\/learn\/interfacing-1-3-inch-oled-spi-i2c-display-module-with-arduino\/#webpage\",\"url\":\"https:\/\/thecaferobot.com\/learn\/interfacing-1-3-inch-oled-spi-i2c-display-module-with-arduino\/\",\"name\":\"\\u0622\\u0645\\u0648\\u0632\\u0634 \\u0631\\u0627\\u0647 \\u0627\\u0646\\u062f\\u0627\\u0632\\u06cc \\u0646\\u0645\\u0627\\u06cc\\u0634\\u06af\\u0631 1.3 \\u0627\\u06cc\\u0646\\u0686 OLED \\u0628\\u0627 \\u0631\\u0627\\u0628\\u0637 I2C\/SPI \\u0628\\u0627 \\u0622\\u0631\\u062f\\u0648\\u06cc\\u0646\\u0648 - \\u06a9\\u0627\\u0641\\u0647 \\u0631\\u0628\\u0627\\u062a\",\"isPartOf\":{\"@id\":\"https:\/\/thecaferobot.com\/learn\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/thecaferobot.com\/learn\/interfacing-1-3-inch-oled-spi-i2c-display-module-with-arduino\/#primaryimage\"},\"datePublished\":\"2021-02-15T05:28:20+00:00\",\"dateModified\":\"2021-06-20T05:32:29+00:00\",\"description\":\"\\u062f\\u0631 \\u0622\\u0645\\u0648\\u0632\\u0634 \\u0631\\u0627\\u0647 \\u0627\\u0646\\u062f\\u0627\\u0632\\u06cc \\u0646\\u0645\\u0627\\u06cc\\u0634\\u06af\\u0631 1.3 \\u0627\\u06cc\\u0646\\u0686 OLED \\u06cc\\u0627\\u062f \\u0645\\u06cc\\u200c\\u06af\\u06cc\\u0631\\u06cc\\u062f \\u0686\\u06af\\u0648\\u0646\\u0647 \\u0627\\u0632 \\u0646\\u0645\\u0627\\u06cc\\u0634\\u06af\\u0631 1.3 \\u0627\\u06cc\\u0646\\u0686 OLED \\u0627\\u0633\\u062a\\u0641\\u0627\\u062f\\u0647 \\u06a9\\u0646\\u06cc\\u062f \\u0628\\u0647 \\u0647\\u0645\\u0631\\u0627\\u0647\\u060c \\u0645\\u062b\\u0627\\u0644\\u060c \\u06a9\\u062f\\u060c \\u06a9\\u062a\\u0627\\u0628\\u062e\\u0627\\u0646\\u0647\",\"inLanguage\":\"fa-IR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/thecaferobot.com\/learn\/interfacing-1-3-inch-oled-spi-i2c-display-module-with-arduino\/\"]}]},{\"@type\":\"Article\",\"@id\":\"https:\/\/thecaferobot.com\/learn\/interfacing-1-3-inch-oled-spi-i2c-display-module-with-arduino\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/thecaferobot.com\/learn\/interfacing-1-3-inch-oled-spi-i2c-display-module-with-arduino\/#webpage\"},\"author\":{\"@id\":\"https:\/\/thecaferobot.com\/learn\/#\/schema\/person\/391776cde87ca107a152ca4dd9440a54\"},\"headline\":\"\\u0622\\u0645\\u0648\\u0632\\u0634 \\u0631\\u0627\\u0647 \\u0627\\u0646\\u062f\\u0627\\u0632\\u06cc \\u0646\\u0645\\u0627\\u06cc\\u0634\\u06af\\u0631 1.3 \\u0627\\u06cc\\u0646\\u0686 OLED \\u0628\\u0627 \\u0631\\u0627\\u0628\\u0637 I2C\/SPI \\u0628\\u0627 \\u0622\\u0631\\u062f\\u0648\\u06cc\\u0646\\u0648\",\"datePublished\":\"2021-02-15T05:28:20+00:00\",\"dateModified\":\"2021-06-20T05:32:29+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/thecaferobot.com\/learn\/interfacing-1-3-inch-oled-spi-i2c-display-module-with-arduino\/#webpage\"},\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/thecaferobot.com\/learn\/#organization\"},\"image\":{\"@id\":\"https:\/\/thecaferobot.com\/learn\/interfacing-1-3-inch-oled-spi-i2c-display-module-with-arduino\/#primaryimage\"},\"keywords\":\"\\u0646\\u0645\\u0627\\u0634\\u06af\\u0631 OLED\",\"articleSection\":\"\\u0646\\u0645\\u0627\\u06cc\\u0634\\u06af\\u0631\\u0647\\u0627\",\"inLanguage\":\"fa-IR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/thecaferobot.com\/learn\/interfacing-1-3-inch-oled-spi-i2c-display-module-with-arduino\/#respond\"]}]},{\"@type\":[\"Person\"],\"@id\":\"https:\/\/thecaferobot.com\/learn\/#\/schema\/person\/391776cde87ca107a152ca4dd9440a54\",\"name\":\"\\u0645\\u062d\\u0645\\u062f \\u062f\\u0645\\u06cc\\u0631\\u0686\\u06cc\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/thecaferobot.com\/learn\/#personlogo\",\"inLanguage\":\"fa-IR\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/831b2d5977ac9997b6a7e78dc61cfd45?s=96&d=mm&r=g\",\"caption\":\"\\u0645\\u062d\\u0645\\u062f \\u062f\\u0645\\u06cc\\u0631\\u0686\\u06cc\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","_links":{"self":[{"href":"https:\/\/thecaferobot.com\/learn\/wp-json\/wp\/v2\/posts\/21733"}],"collection":[{"href":"https:\/\/thecaferobot.com\/learn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thecaferobot.com\/learn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thecaferobot.com\/learn\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/thecaferobot.com\/learn\/wp-json\/wp\/v2\/comments?post=21733"}],"version-history":[{"count":6,"href":"https:\/\/thecaferobot.com\/learn\/wp-json\/wp\/v2\/posts\/21733\/revisions"}],"predecessor-version":[{"id":23071,"href":"https:\/\/thecaferobot.com\/learn\/wp-json\/wp\/v2\/posts\/21733\/revisions\/23071"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/thecaferobot.com\/learn\/wp-json\/wp\/v2\/media\/21734"}],"wp:attachment":[{"href":"https:\/\/thecaferobot.com\/learn\/wp-json\/wp\/v2\/media?parent=21733"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thecaferobot.com\/learn\/wp-json\/wp\/v2\/categories?post=21733"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thecaferobot.com\/learn\/wp-json\/wp\/v2\/tags?post=21733"},{"taxonomy":"platform","embeddable":true,"href":"https:\/\/thecaferobot.com\/learn\/wp-json\/wp\/v2\/platform?post=21733"},{"taxonomy":"bytype","embeddable":true,"href":"https:\/\/thecaferobot.com\/learn\/wp-json\/wp\/v2\/bytype?post=21733"},{"taxonomy":"difficulty","embeddable":true,"href":"https:\/\/thecaferobot.com\/learn\/wp-json\/wp\/v2\/difficulty?post=21733"},{"taxonomy":"related_products","embeddable":true,"href":"https:\/\/thecaferobot.com\/learn\/wp-json\/wp\/v2\/related_products?post=21733"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}