Hi.
I've ordered -> Blue Color 3.12" 3.12inch OLED Display Module 256x64 SPI SSD1322 display (see attachments).
Pinout for this display is like this:
1.>VCC:power positive 3.3V-5V
2,3.>GND:power ground
4.>RES:OLED module reset pin
5.>CS:OELD module chip selection pin;low level valid,and it can directly connect with ground
6.>DC:OLED module data/command selection pin
7.>R/W:when it is in 6800 interface,it is used for reading and writing signals;when it is in 8080 interface,it is used for writing signals
8.>E/RD:when it is in 6800 interface,it is used for reading and writing enable signals;when it is in 8080 interface.it is used for reading signals
9-16.>correspond D0-D7 respectively
I'm new to Arduino. Can you advise how to connect this display to Arduino uno ?
(Which pin from Uno to which to display).
Thanks in advance.
Hi
If picture 2.jpg is your OLED, then please be aware, that your OLED is configured as 4-wire SPI. Any attempt to use it in 8080 or 6800 mode will obviously fail.
But 4-wire SPI is good and reliable, so I suggest to use this mode.
In 4-wire SPI mode, the pins have different meaning, like you can see here:
My suggestion is to create a mapping table from OLED to your Uno Board:
OLED --> Uno
D7 --> GND
D6 --> GND
...
D2 --> leave unconnected
D1 (SDN = Data = MOSI) --> Pin 11
D0 (SCLK = SPI Clock) --> Pin 13
E --> GND
R/W --> GND
CS --> Pin 10 (but any other pin will be fine also)
DC --> Pin 9 (but any other pin will be fine also)
Reset --> Pin 8 (but any other pin will be fine also)
Then use
U8G2_SSD1322_NHD_256X64_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8);
from u8g2 library
Remember to uncomment U8G2_16BIT in u8g2.h!!!
Oliver
Thank you very much! Will test this once my display arrive!