Wiring the 128×64 1.3 inch OLED Display on 4 Wire, 3 Wire, i2C Interface
This is the 1.3 inch OLED Display driven by SH1106 from Waveshare, 128×64 resolution, it has integrated 3 interface the 3 wire SPI, 4 wire SPI, and i2C for ease integration in your microcontroller. This OLED is mainly runs by SH1106 a single chip CMOS OLED/PLED for organic polymer light emitting diode dot-matrix graphic display system.
SH1106 it has 132 segments, 64 commons that can support a maximum display resolution of 132 X 64 and designated for common cathode type OLED panel. SH1106 has integrated contract control, display RAM oscillator and efficient DC to DC converter, which reduce the number of external components and power consumption.
SH1106 is suitable for wide range compact portable applications such as sud-display for mobile devices, mp3 players, calculators, home appliances, automotive, industrial machineries. The diagram below shows two options to wire the OLED display see the diagram for SPI and i2C note: this modules are soldered as 4 SPI interface for i2c see the datasheet or diagram for soldering the required connection to enable the interface.
Required Components
Arduino Microcontroller, NodeMCU, Teensy Board, TeensyDuino, ESP8266 12, 12E, ESP8266 NodeMCU, ESPDuino, ATMEGA328 16/12, ATMEGA32u4 16/8/ MHz, ESP8266, ATMEGA250 16 MHz, ATSAM3x8E, ATSAM21D, ATTINY85 16/8 MHz (Note: The Diagram below is using NANO. (please refer to the respective pin-outs)
1.3″ OLED Display Monochrome Module from Waveshare
Jumper Wires / DuPont Wires
Solder Less Bread Board
Wiring Guide for SPI
Wiring Guide for i2C
Source Code 3 Wire – 4 Wire SPI
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#include "U8glib.h" // U8glib library for the OLED you download below
#include <Wire.h> // Set Wire library for I2C communication
We use cookie to provide you the best possible experience, this site uses cookies and by continuing to use the site you agree that we can save them on your device. Cookies are small text files which are placed on your computer and which remember your preference / some details of your visit. Our cookies don’t collect any personal information. For information, please read our Privacy Statement and Cookie Policy , which also explains how to disable this option in your browser. Cookie SettingsACCEPT
Privacy & Cookies Policy
Privacy Overview
This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are as essential for the working of basic functionalit...
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
You have reversed the constructor code for each sample. You have the SPI constructor in the I2C example and vice versa.
Pingback:Point to Point / Server & Client Setup on ESP8266 & MCP9808 Temp Sensor | 14core.com
Oh my god. You save my live. Thank you so much
I did it
Pingback:Wiring SENSERION SCD30 CO2 Sensor in ESP32 TFT Display | 14core.com