1.3inch OLED (A)
| ||
Overview
Introduction
1.3inch OLED, SPI/I2C interfaces, curved/horizontal pinheader
More |
Specification
- Operating Voltage: 3.3V/5V
- Communication Interface: 3-wire SPI, 4-wire SPI, I2C
- Screen Types: OLED
- Driver Chip: SH1106
- Resolution: 128*64(Pixel)
- Display Size: 14.7(H)x 29.42(V)(mm)
- Pixel Size: 0.21 x 0.21 (mm)
- Dimension: 40.5 x 37.5(mm)
- Display Color: Blue
- Operating TEMP. (℃): -30~70
- STORAGE TEMP. (℃): -30~80
- Visible Angle: >160°
Pin
PIN | Description |
VCC | 3.3V/5V |
GND | Ground |
VCC | 3.3V/5V |
NC | NC |
DIN | SPI Data Input |
CLK | SPI Clock Input |
CS | Chip selection, low active |
RST | Reset |
Hardware Configuration
The OLED module provides three drive interfaces: 3-wire SPI, 4-wire SPI, and I2C interface respectively. There are two resistors that can be soldered on the back of the module. The corresponding communication method is selected by the electronic selection, as shown in the figure:
The module uses the 4-wire SPI communication mode by default, that is, BS0 and BS1 are connected to 0 by default (1 and 0 do not represent the level, but the resistance is connected or connected to the welding method, the specific hardware link is shown in the table below):
Note: The above picture is the welding on the hardware, the following table is the actual hardware connection
Communication Methods | BS1/BS0 |
3-wire SPI | 0/1 |
4-wire SPI | 0/0 |
I2C | 1/0 |
The specific hardware configuration is as follows:
- Using 4-wire SPI:
That is, the factory program settings: BS0 and BS1 are connected to 0 and connected to ground, DIN is connected to 0 to connect to Raspberry Pi MOSI, and CLK is connected to 0 to connect to Raspberry Pi SCLK;
- Using 3-wire SPI:
Connect BS0 to 1 to VCC, BS1 to 0 to connect to GND, DIN to 0 to connect to Raspberry Pi MOSI, and CLK to 0 to connect to Raspberry Pi SCLK;
- Using I2C:
BS0 connects to 0 and connects to GND, BS1 connects to 1 and connects to VCC (3.3V), DIN connects to 0 and connects to Raspberry Pi SDA, and CLK connects to 1 to connect to Raspberry Pi SCL;
When using I2C: The high and low state of DC can control the address of the slave device. If it is connected to GND, then the 7-bit address of I2C is: 0x3C;
PS: The program defaults to SPI mode. If you need to switch the mode, please modify DEV_Config.h. For details, please refer to the program description - bottom hardware interface - interface selection
PS: When using STM32, the I2C routine uses analog I2C, please pay attention to the connection
Resources
FAQ
{{{5}}}
Support
If you require technical support, please go to the Support page and open a ticket.