{"id":20322,"date":"2021-02-21T12:11:38","date_gmt":"2021-02-21T12:11:38","guid":{"rendered":"https:\/\/electropeak.com\/learn\/?p=20322"},"modified":"2024-07-11T09:09:27","modified_gmt":"2024-07-11T09:09:27","slug":"interfacing-sh1106-1-3-inch-i2c-oled-128x64-display-with-arduino","status":"publish","type":"post","link":"https:\/\/electropeak.com\/learn\/interfacing-sh1106-1-3-inch-i2c-oled-128x64-display-with-arduino\/","title":{"rendered":"Interfacing 1.3 Inch I2C OLED Display Module with Arduino"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"20322\" class=\"elementor elementor-20322\" data-elementor-post-type=\"post\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-108a01c elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"108a01c\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-f925777\" data-id=\"f925777\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-89baffa elementor-widget elementor-widget-text-editor\" data-id=\"89baffa\" data-element_type=\"widget\" data-e-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\t<p>Discover the power of the 1.3 inch OLED display module and its seamless integration with Arduino. With its impressive features and cutting-edge technology, this display promises to enhance your user experience. Learn how to interface this display module with Arduino using simple steps and bring your projects to life.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-34e2950f elementor-widget elementor-widget-heading\" data-id=\"34e2950f\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Features<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-1cdaadaa elementor-widget elementor-widget-text-editor\" data-id=\"1cdaadaa\" data-element_type=\"widget\" data-e-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\t<p>OLED displays are high contrast, high-resolution and low-power displays, so they provide a good quality for users. There is no backlight on OLED, and it uses independent-illuminated pixels. So it is thinner, and more elegant in compare to LCDs. The driver chip is SH1106, which provides I2C communication.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-26e68a46 elementor-widget elementor-widget-image\" data-id=\"26e68a46\" data-element_type=\"widget\" data-e-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\t\t\t\t\t\t\t\t<a href=\"https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/02\/1.3inch-oled-1.jpg\" data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-title=\"1.3inch oled-1\" data-e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6MjA4NTgsInVybCI6Imh0dHBzOlwvXC9lbGVjdHJvcGVhay5jb21cL2xlYXJuXC93cC1jb250ZW50XC91cGxvYWRzXC8yMDIxXC8wMlwvMS4zaW5jaC1vbGVkLTEuanBnIn0%3D\">\n\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"600\" height=\"600\" src=\"https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/02\/1.3inch-oled-1.jpg\" class=\"attachment-large size-large wp-image-20858\" alt=\"1.3 INCH OLED Display\" srcset=\"https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/02\/1.3inch-oled-1.jpg 600w, https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/02\/1.3inch-oled-1-400x400.jpg 400w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/>\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-2366ca94 elementor-widget elementor-widget-text-editor\" data-id=\"2366ca94\" data-element_type=\"widget\" data-e-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\t<p>You can download the datasheet of this\u00a0module\u00a0here.\u202f\u00a0<\/p><p><div class='w3eden wpdm_package_shortcode'><!-- WPDM Link Template: Call to Action 3 -->\n\n<div class=\"well c2a3\">\n    <div class=\"media\">\n        <div class=\"mr-3\" align=\"left\">\n            <img decoding=\"async\" class=\"wpdm_icon\" alt=\"Icon\" src=\"https:\/\/electropeak.com\/learn\/wp-content\/plugins\/download-manager\/assets\/file-type-icons\/pdf.svg\" \/>\n        <\/div>\n        <div class=\"media-body\">\n            <h3 class=\"media-heading\" style=\"padding-top: 0px;border:0px;margin: 0 0 5px 0;font-size:12pt;\">\n                <a style=\"font-weight: 700\" href=\"https:\/\/electropeak.com\/learn\/download\/1-3-inch-oled-display-datasheet\/\">1.3 INCH OLED Display Datasheet<\/a>\n                <span style=\"font-size:8pt;font-weight:300\" class=\"text-muted ml-4\">\n                    <i class=\"fas fa-hdd mr-1\"><\/i> 1.18 MB\n                    <i class=\"ml-3 far fa-arrow-alt-circle-down mr-1\"><\/i> 2927 downloads\n                <\/span>\n            <\/h3>\n            &#8230;\n        <\/div>\n        <div class=\"ml-3\" align=\"right\">\n            <a class='wpdm-download-link download-on-click btn btn-primary '  rel='nofollow' href='#' data-downloadurl=\"https:\/\/electropeak.com\/learn\/download\/1-3-inch-oled-display-datasheet\/?wpdmdl=20329&#038;refresh=6aac5822d00251789679650\">Download<\/a>\n        <\/div>\n    <\/div>\n\n<\/div>\n<style>\n    .well.c2a3 .btn {\n        padding: 11px 30px;\n        font-size: 11pt;\n    }\n\n    .well.c2a3 .media-body {\n        font-size: 11pt;\n    }\n\n    .well.c2a3 .wpdm_icon {\n        height: 42px;\n        width: auto;\n    }<\/style>\n<\/div><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-12185557 elementor-widget elementor-widget-heading\" data-id=\"12185557\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">1.3 INCH OLED Display Pinout<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-7eec9d0e elementor-widget elementor-widget-text-editor\" data-id=\"7eec9d0e\" data-element_type=\"widget\" data-e-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\t<p>This module has 4 pins:<\/p><ul><li><strong>VCC<\/strong>: Module power supply \u2013 5V<\/li><li><strong>GND<\/strong>: Ground<\/li><li><strong>SCL<\/strong>: I2C clock<\/li><li><strong>SDA<\/strong>: I2C data<\/li><\/ul><p>You can see the pinout of this module in the image below.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-7af21642 elementor-widget elementor-widget-image\" data-id=\"7af21642\" data-element_type=\"widget\" data-e-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\t\t\t\t\t\t\t\t<a href=\"https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/02\/1.3inch-oled-pin.jpg\" data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-title=\"1.3inch oled-pin\" data-e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6MjA4NTksInVybCI6Imh0dHBzOlwvXC9lbGVjdHJvcGVhay5jb21cL2xlYXJuXC93cC1jb250ZW50XC91cGxvYWRzXC8yMDIxXC8wMlwvMS4zaW5jaC1vbGVkLXBpbi5qcGcifQ%3D%3D\">\n\t\t\t\t\t\t\t<img decoding=\"async\" width=\"800\" height=\"600\" src=\"https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/02\/1.3inch-oled-pin.jpg\" class=\"attachment-large size-large wp-image-20859\" alt=\"1.3 INCH OLED Display Pinout\" srcset=\"https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/02\/1.3inch-oled-pin.jpg 800w, https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/02\/1.3inch-oled-pin-533x400.jpg 533w, https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/02\/1.3inch-oled-pin-400x300.jpg 400w, https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/02\/1.3inch-oled-pin-768x576.jpg 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/>\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-7baacf4f elementor-widget elementor-widget-heading\" data-id=\"7baacf4f\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Required Material <\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-74756db5 elementor-widget elementor-widget-image\" data-id=\"74756db5\" data-element_type=\"widget\" data-e-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\t\t\t\t\t\t\t\t<a href=\"https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/02\/1.3inch-oled-Required-Materials.jpg\" data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-title=\"1.3inch oled-Required-Materials\" data-e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6MjA4NjAsInVybCI6Imh0dHBzOlwvXC9lbGVjdHJvcGVhay5jb21cL2xlYXJuXC93cC1jb250ZW50XC91cGxvYWRzXC8yMDIxXC8wMlwvMS4zaW5jaC1vbGVkLVJlcXVpcmVkLU1hdGVyaWFscy5qcGcifQ%3D%3D\">\n\t\t\t\t\t\t\t<img decoding=\"async\" width=\"600\" height=\"500\" src=\"https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/02\/1.3inch-oled-Required-Materials.jpg\" class=\"attachment-large size-large wp-image-20860\" alt=\"\" srcset=\"https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/02\/1.3inch-oled-Required-Materials.jpg 600w, https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/02\/1.3inch-oled-Required-Materials-480x400.jpg 480w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/>\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-384d6604 elementor-widget elementor-widget-heading\" data-id=\"384d6604\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">Hardware component\t<\/h3>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-2517e40e elementor-widget elementor-widget-html\" data-id=\"2517e40e\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\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%\">Arduino 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=\"https:\/\/electropeak.com\/arduino-uno-r3-original\" target=\"_blank\"><i class=\"fa fa-shopping-cart\" style=\"\"><\/i><\/a><\/td>\r\n<\/tr>\r\n<tr>\r\n\t<td width=\"70%\">1.3 inch OLED 128x64 I2C Display Module\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:\/\/electropeak.com\/1-3-i2c-128x64-white-oled-display-module\" target=\"_blank\"><i class=\"fa fa-shopping-cart\" style=\"\"><\/i><\/a><\/td>\r\n<\/tr>\r\n<tr>\r\n\t<td width=\"70%\">female female jumper wire \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:\/\/electropeak.com\/21cm-40p-female-to-female-jumper-wire\" 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\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-4e47a555 elementor-widget elementor-widget-heading\" data-id=\"4e47a555\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">Software Apps<\/h3>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-1d881e3 elementor-widget elementor-widget-html\" data-id=\"1d881e3\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\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%\">Arduino 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\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-f9f612e elementor-widget elementor-widget-heading\" data-id=\"f9f612e\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Interfacing 1.3 INCH OLED Display Module with Arduino <\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-7e5797b2 elementor-widget elementor-widget-heading\" data-id=\"7e5797b2\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">Step 1: Setting Up the Circuit<\/h3>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-4055ed84 elementor-widget elementor-widget-text-editor\" data-id=\"4055ed84\" data-element_type=\"widget\" data-e-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\t<p>The following circuit show how you should connect Arduino to this module. Connect wires accordingly.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-164d72e7 elementor-widget elementor-widget-image\" data-id=\"164d72e7\" data-element_type=\"widget\" data-e-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\t\t\t\t\t\t\t\t<a href=\"https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/02\/1.3inch-oled-wire.jpg\" data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-title=\"1.3inch oled-wire\" data-e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6MjA4NjEsInVybCI6Imh0dHBzOlwvXC9lbGVjdHJvcGVhay5jb21cL2xlYXJuXC93cC1jb250ZW50XC91cGxvYWRzXC8yMDIxXC8wMlwvMS4zaW5jaC1vbGVkLXdpcmUuanBnIn0%3D\">\n\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"600\" src=\"https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/02\/1.3inch-oled-wire.jpg\" class=\"attachment-large size-large wp-image-20861\" alt=\"1.3 INCH OLED Arduino circuit\" srcset=\"https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/02\/1.3inch-oled-wire.jpg 800w, https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/02\/1.3inch-oled-wire-533x400.jpg 533w, https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/02\/1.3inch-oled-wire-400x300.jpg 400w, https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/02\/1.3inch-oled-wire-768x576.jpg 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/>\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-4b669bbd elementor-widget elementor-widget-heading\" data-id=\"4b669bbd\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">Step 2: Installing the Required Libraries<\/h3>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-5d9430d2 elementor-widget elementor-widget-text-editor\" data-id=\"5d9430d2\" data-element_type=\"widget\" data-e-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\t<p>To enable smooth communication between Arduino and the OLED display module, you need to install the following libraries on your Arduino IDE:<\/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\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-488f0e5a elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"488f0e5a\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-inner-column elementor-element elementor-element-573dabbe\" data-id=\"573dabbe\" data-element_type=\"column\" data-e-type=\"column\" data-settings=\"{&quot;background_background&quot;:&quot;gradient&quot;}\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-36974c72 elementor-view-stacked elementor-widget__width-auto elementor-absolute elementor-shape-circle elementor-widget elementor-widget-icon\" data-id=\"36974c72\" data-element_type=\"widget\" data-e-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\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\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-5ca69c72 elementor-widget elementor-widget-heading\" data-id=\"5ca69c72\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h5 class=\"elementor-heading-title elementor-size-default\">Tip<\/h5>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-29d914fb elementor-widget elementor-widget-text-editor\" data-id=\"29d914fb\" data-element_type=\"widget\" data-e-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\t<p>If you need more help with installing a library on Arduino, read this tutorial:\u00a0<strong><a href=\"https:\/\/electropeak.com\/learn\/how-to-install-an-arduino-library\/\"><em>How to Install an Arduino Library<\/em><\/a><\/strong><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<div class=\"elementor-element elementor-element-3ce798b4 elementor-widget elementor-widget-heading\" data-id=\"3ce798b4\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">Step 3: Uploading the Code<\/h3>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-5666f1b8 elementor-widget elementor-widget-text-editor\" data-id=\"5666f1b8\" data-element_type=\"widget\" data-e-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\t<p>Upload the following code to your Arduino.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-57681f39 elementor-widget elementor-widget-html\" data-id=\"57681f39\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<pre class=\"line-numbers lang-arduino\"><code>   \/*********************************************************************\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\r\n<\/code><\/pre>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-2f5d7662 elementor-widget elementor-widget-text-editor\" data-id=\"2f5d7662\" data-element_type=\"widget\" data-e-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\t<p><span style=\"letter-spacing: 0px;\">By following these simple steps, you can unlock the full potential of this display module in combination with Arduino. Experience stunning visuals and take your projects to new heights. Get started today and embark on a journey of creativity and innovation.<\/span><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Discover the power of the 1.3 inch OLED display module and its seamless integration with Arduino. With its impressive features and cutting-edge technology, this display promises to enhance your user experience. Learn how to interface this display module with Arduino using simple steps and bring your projects to life. Features OLED displays are high contrast, [&hellip;]<\/p>\n","protected":false},"author":16,"featured_media":29971,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[935],"tags":[4427],"platform":[1071],"bytype":[1075],"difficulty":[1077],"related_products":[4135],"class_list":["post-20322","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-lcds-displays","tag-oled-display","platform-arduino","bytype-hookup-guides","difficulty-beginner","related_products-lcd-01-103"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Interfacing 1.3 Inch OLED Display Module with Arduino | Electropeak<\/title>\n<meta name=\"description\" content=\"Learn How to interface a 1.3 Inch I2C OLED Display Module with Arduino. using 1.3 Inch OLED Display example code, circuit, pinout, library\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/electropeak.com\/learn\/interfacing-sh1106-1-3-inch-i2c-oled-128x64-display-with-arduino\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Interfacing 1.3 Inch OLED Display Module with Arduino | Electropeak\" \/>\n<meta property=\"og:description\" content=\"Learn How to interface a 1.3 Inch I2C OLED Display Module with Arduino. using 1.3 Inch OLED Display example code, circuit, pinout, library\" \/>\n<meta property=\"og:url\" content=\"https:\/\/electropeak.com\/learn\/interfacing-sh1106-1-3-inch-i2c-oled-128x64-display-with-arduino\/\" \/>\n<meta property=\"og:site_name\" content=\"Electropeak\" \/>\n<meta property=\"article:published_time\" content=\"2021-02-21T12:11:38+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-07-11T09:09:27+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/02\/1.3inch-oled-Demo-Arduino-1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"900\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Mohammad Damirchi\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Mohammad Damirchi\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/electropeak.com\\\/learn\\\/interfacing-sh1106-1-3-inch-i2c-oled-128x64-display-with-arduino\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/electropeak.com\\\/learn\\\/interfacing-sh1106-1-3-inch-i2c-oled-128x64-display-with-arduino\\\/\"},\"author\":{\"name\":\"Mohammad Damirchi\",\"@id\":\"https:\\\/\\\/electropeak.com\\\/learn\\\/#\\\/schema\\\/person\\\/391776cde87ca107a152ca4dd9440a54\"},\"headline\":\"Interfacing 1.3 Inch I2C OLED Display Module with Arduino\",\"datePublished\":\"2021-02-21T12:11:38+00:00\",\"dateModified\":\"2024-07-11T09:09:27+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/electropeak.com\\\/learn\\\/interfacing-sh1106-1-3-inch-i2c-oled-128x64-display-with-arduino\\\/\"},\"wordCount\":318,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\\\/\\\/electropeak.com\\\/learn\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/electropeak.com\\\/learn\\\/interfacing-sh1106-1-3-inch-i2c-oled-128x64-display-with-arduino\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/electropeak.com\\\/learn\\\/wp-content\\\/uploads\\\/2021\\\/02\\\/1.3inch-oled-Demo-Arduino-1.jpg\",\"keywords\":[\"OLED Display\"],\"articleSection\":[\"LCDs &amp; Displays\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/electropeak.com\\\/learn\\\/interfacing-sh1106-1-3-inch-i2c-oled-128x64-display-with-arduino\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/electropeak.com\\\/learn\\\/interfacing-sh1106-1-3-inch-i2c-oled-128x64-display-with-arduino\\\/\",\"url\":\"https:\\\/\\\/electropeak.com\\\/learn\\\/interfacing-sh1106-1-3-inch-i2c-oled-128x64-display-with-arduino\\\/\",\"name\":\"Interfacing 1.3 Inch OLED Display Module with Arduino | Electropeak\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/electropeak.com\\\/learn\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/electropeak.com\\\/learn\\\/interfacing-sh1106-1-3-inch-i2c-oled-128x64-display-with-arduino\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/electropeak.com\\\/learn\\\/interfacing-sh1106-1-3-inch-i2c-oled-128x64-display-with-arduino\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/electropeak.com\\\/learn\\\/wp-content\\\/uploads\\\/2021\\\/02\\\/1.3inch-oled-Demo-Arduino-1.jpg\",\"datePublished\":\"2021-02-21T12:11:38+00:00\",\"dateModified\":\"2024-07-11T09:09:27+00:00\",\"description\":\"Learn How to interface a 1.3 Inch I2C OLED Display Module with Arduino. using 1.3 Inch OLED Display example code, circuit, pinout, library\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/electropeak.com\\\/learn\\\/interfacing-sh1106-1-3-inch-i2c-oled-128x64-display-with-arduino\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/electropeak.com\\\/learn\\\/interfacing-sh1106-1-3-inch-i2c-oled-128x64-display-with-arduino\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/electropeak.com\\\/learn\\\/interfacing-sh1106-1-3-inch-i2c-oled-128x64-display-with-arduino\\\/#primaryimage\",\"url\":\"https:\\\/\\\/electropeak.com\\\/learn\\\/wp-content\\\/uploads\\\/2021\\\/02\\\/1.3inch-oled-Demo-Arduino-1.jpg\",\"contentUrl\":\"https:\\\/\\\/electropeak.com\\\/learn\\\/wp-content\\\/uploads\\\/2021\\\/02\\\/1.3inch-oled-Demo-Arduino-1.jpg\",\"width\":1200,\"height\":900},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/electropeak.com\\\/learn\\\/interfacing-sh1106-1-3-inch-i2c-oled-128x64-display-with-arduino\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/electropeak.com\\\/learn\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Interfacing 1.3 Inch I2C OLED Display Module with Arduino\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/electropeak.com\\\/learn\\\/#website\",\"url\":\"https:\\\/\\\/electropeak.com\\\/learn\\\/\",\"name\":\"Electropeak\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/electropeak.com\\\/learn\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/electropeak.com\\\/learn\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/electropeak.com\\\/learn\\\/#organization\",\"name\":\"ElectroPeak\",\"url\":\"https:\\\/\\\/electropeak.com\\\/learn\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/electropeak.com\\\/learn\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/electropeak.com\\\/learn\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/logo-electropeak-v3-square.png\",\"contentUrl\":\"https:\\\/\\\/electropeak.com\\\/learn\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/logo-electropeak-v3-square.png\",\"width\":620,\"height\":620,\"caption\":\"ElectroPeak\"},\"image\":{\"@id\":\"https:\\\/\\\/electropeak.com\\\/learn\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/electropeak.com\\\/learn\\\/#\\\/schema\\\/person\\\/391776cde87ca107a152ca4dd9440a54\",\"name\":\"Mohammad Damirchi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/928d6214054264c2b2445ff4978f9d918bf0242f1f75bde6cc141a8636e4c3b5?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/928d6214054264c2b2445ff4978f9d918bf0242f1f75bde6cc141a8636e4c3b5?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/928d6214054264c2b2445ff4978f9d918bf0242f1f75bde6cc141a8636e4c3b5?s=96&d=mm&r=g\",\"caption\":\"Mohammad Damirchi\"},\"sameAs\":[\"mohammad\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Interfacing 1.3 Inch OLED Display Module with Arduino | Electropeak","description":"Learn How to interface a 1.3 Inch I2C OLED Display Module with Arduino. using 1.3 Inch OLED Display example code, circuit, pinout, library","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:\/\/electropeak.com\/learn\/interfacing-sh1106-1-3-inch-i2c-oled-128x64-display-with-arduino\/","og_locale":"en_US","og_type":"article","og_title":"Interfacing 1.3 Inch OLED Display Module with Arduino | Electropeak","og_description":"Learn How to interface a 1.3 Inch I2C OLED Display Module with Arduino. using 1.3 Inch OLED Display example code, circuit, pinout, library","og_url":"https:\/\/electropeak.com\/learn\/interfacing-sh1106-1-3-inch-i2c-oled-128x64-display-with-arduino\/","og_site_name":"Electropeak","article_published_time":"2021-02-21T12:11:38+00:00","article_modified_time":"2024-07-11T09:09:27+00:00","og_image":[{"width":1200,"height":900,"url":"https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/02\/1.3inch-oled-Demo-Arduino-1.jpg","type":"image\/jpeg"}],"author":"Mohammad Damirchi","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Mohammad Damirchi","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/electropeak.com\/learn\/interfacing-sh1106-1-3-inch-i2c-oled-128x64-display-with-arduino\/#article","isPartOf":{"@id":"https:\/\/electropeak.com\/learn\/interfacing-sh1106-1-3-inch-i2c-oled-128x64-display-with-arduino\/"},"author":{"name":"Mohammad Damirchi","@id":"https:\/\/electropeak.com\/learn\/#\/schema\/person\/391776cde87ca107a152ca4dd9440a54"},"headline":"Interfacing 1.3 Inch I2C OLED Display Module with Arduino","datePublished":"2021-02-21T12:11:38+00:00","dateModified":"2024-07-11T09:09:27+00:00","mainEntityOfPage":{"@id":"https:\/\/electropeak.com\/learn\/interfacing-sh1106-1-3-inch-i2c-oled-128x64-display-with-arduino\/"},"wordCount":318,"commentCount":2,"publisher":{"@id":"https:\/\/electropeak.com\/learn\/#organization"},"image":{"@id":"https:\/\/electropeak.com\/learn\/interfacing-sh1106-1-3-inch-i2c-oled-128x64-display-with-arduino\/#primaryimage"},"thumbnailUrl":"https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/02\/1.3inch-oled-Demo-Arduino-1.jpg","keywords":["OLED Display"],"articleSection":["LCDs &amp; Displays"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/electropeak.com\/learn\/interfacing-sh1106-1-3-inch-i2c-oled-128x64-display-with-arduino\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/electropeak.com\/learn\/interfacing-sh1106-1-3-inch-i2c-oled-128x64-display-with-arduino\/","url":"https:\/\/electropeak.com\/learn\/interfacing-sh1106-1-3-inch-i2c-oled-128x64-display-with-arduino\/","name":"Interfacing 1.3 Inch OLED Display Module with Arduino | Electropeak","isPartOf":{"@id":"https:\/\/electropeak.com\/learn\/#website"},"primaryImageOfPage":{"@id":"https:\/\/electropeak.com\/learn\/interfacing-sh1106-1-3-inch-i2c-oled-128x64-display-with-arduino\/#primaryimage"},"image":{"@id":"https:\/\/electropeak.com\/learn\/interfacing-sh1106-1-3-inch-i2c-oled-128x64-display-with-arduino\/#primaryimage"},"thumbnailUrl":"https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/02\/1.3inch-oled-Demo-Arduino-1.jpg","datePublished":"2021-02-21T12:11:38+00:00","dateModified":"2024-07-11T09:09:27+00:00","description":"Learn How to interface a 1.3 Inch I2C OLED Display Module with Arduino. using 1.3 Inch OLED Display example code, circuit, pinout, library","breadcrumb":{"@id":"https:\/\/electropeak.com\/learn\/interfacing-sh1106-1-3-inch-i2c-oled-128x64-display-with-arduino\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/electropeak.com\/learn\/interfacing-sh1106-1-3-inch-i2c-oled-128x64-display-with-arduino\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/electropeak.com\/learn\/interfacing-sh1106-1-3-inch-i2c-oled-128x64-display-with-arduino\/#primaryimage","url":"https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/02\/1.3inch-oled-Demo-Arduino-1.jpg","contentUrl":"https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/02\/1.3inch-oled-Demo-Arduino-1.jpg","width":1200,"height":900},{"@type":"BreadcrumbList","@id":"https:\/\/electropeak.com\/learn\/interfacing-sh1106-1-3-inch-i2c-oled-128x64-display-with-arduino\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/electropeak.com\/learn\/"},{"@type":"ListItem","position":2,"name":"Interfacing 1.3 Inch I2C OLED Display Module with Arduino"}]},{"@type":"WebSite","@id":"https:\/\/electropeak.com\/learn\/#website","url":"https:\/\/electropeak.com\/learn\/","name":"Electropeak","description":"","publisher":{"@id":"https:\/\/electropeak.com\/learn\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/electropeak.com\/learn\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/electropeak.com\/learn\/#organization","name":"ElectroPeak","url":"https:\/\/electropeak.com\/learn\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/electropeak.com\/learn\/#\/schema\/logo\/image\/","url":"https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2026\/07\/logo-electropeak-v3-square.png","contentUrl":"https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2026\/07\/logo-electropeak-v3-square.png","width":620,"height":620,"caption":"ElectroPeak"},"image":{"@id":"https:\/\/electropeak.com\/learn\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/electropeak.com\/learn\/#\/schema\/person\/391776cde87ca107a152ca4dd9440a54","name":"Mohammad Damirchi","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/928d6214054264c2b2445ff4978f9d918bf0242f1f75bde6cc141a8636e4c3b5?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/928d6214054264c2b2445ff4978f9d918bf0242f1f75bde6cc141a8636e4c3b5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/928d6214054264c2b2445ff4978f9d918bf0242f1f75bde6cc141a8636e4c3b5?s=96&d=mm&r=g","caption":"Mohammad Damirchi"},"sameAs":["mohammad"]}]}},"_links":{"self":[{"href":"https:\/\/electropeak.com\/learn\/wp-json\/wp\/v2\/posts\/20322","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/electropeak.com\/learn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/electropeak.com\/learn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/electropeak.com\/learn\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/electropeak.com\/learn\/wp-json\/wp\/v2\/comments?post=20322"}],"version-history":[{"count":21,"href":"https:\/\/electropeak.com\/learn\/wp-json\/wp\/v2\/posts\/20322\/revisions"}],"predecessor-version":[{"id":25762,"href":"https:\/\/electropeak.com\/learn\/wp-json\/wp\/v2\/posts\/20322\/revisions\/25762"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/electropeak.com\/learn\/wp-json\/wp\/v2\/media\/29971"}],"wp:attachment":[{"href":"https:\/\/electropeak.com\/learn\/wp-json\/wp\/v2\/media?parent=20322"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/electropeak.com\/learn\/wp-json\/wp\/v2\/categories?post=20322"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/electropeak.com\/learn\/wp-json\/wp\/v2\/tags?post=20322"},{"taxonomy":"platform","embeddable":true,"href":"https:\/\/electropeak.com\/learn\/wp-json\/wp\/v2\/platform?post=20322"},{"taxonomy":"bytype","embeddable":true,"href":"https:\/\/electropeak.com\/learn\/wp-json\/wp\/v2\/bytype?post=20322"},{"taxonomy":"difficulty","embeddable":true,"href":"https:\/\/electropeak.com\/learn\/wp-json\/wp\/v2\/difficulty?post=20322"},{"taxonomy":"related_products","embeddable":true,"href":"https:\/\/electropeak.com\/learn\/wp-json\/wp\/v2\/related_products?post=20322"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}