- Working Voltage:3.3V
- Communication Interface:/IIC
- Controller:SH1107
- Resolution:64 × 128
- Display Area:14.7 × 29.42 (mm)
- Pixel size:0.15 × 0.15 (mm)
- Dimension: 30 × 39.5 (mm)
- Color: Black/White
Overview
1.3inch LCD HAT, SPI/I2C interfaces
Specification
- Working Voltage:3.3V
- Communication Interface:/IIC
- Controller:SH1107
- Resolution:64 × 128
- Display Area:14.7 × 29.42 (mm)
- Pixel size:0.15 × 0.15 (mm)
- Dimension: 30 × 39.5 (mm)
- Color: Black/White
Pins
PIN | Description |
VCC | Power input(3.3V) |
GND | Ground |
DIN | MOSI pin of SPI (Data input) |
CLK | SCLK pin of SPI (Clock input) |
CS | Chip selection, low active |
DC | Data/Command, Low for command and High for data |
RST | Reset, Low active |
Hardware Configuration
The OLED module provides two drive interfaces: 4-wire SPI and I2C. There is a resistor that can be soldered on the back of the module, and the corresponding communication mode can be selected through the selection of the resistor, as shown in the figure:
The module uses 4-wire SPI communication mode by default, that is, IM is connected to 0 by default (1 and 0 do not represent the level, just the welding method of connecting or connecting the resistance, the specific hardware link is shown in the following table):
Note: The above picture is the welding on the hardware, the following table is the actual hardware connection
Communication Method | IM |
4-wire SPI | 0 |
I2C | 1 |
The specific hardware configuration is as follows:
- Using 4-wire SPI:
That is, the factory program setting: IM is connected to 0 and connected to the ground;
- Using I2C:
IM is connected to 1 to VCC (3.3V);
When using I2C: The high and low state of DC can control the address of the slave device. If it receives a low level, 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
OLED and its controller
This OLED integrates the SH1107 controller which has 128x128 bits SRAM, supports 128x128 resolution. The controller features SPI/IIC/ 6800/8080 interface and 256 brightness levels. The resolution of this 1.3inch OLED is only 64x128, only half of the SRAM is used.
This OLED use four-line SPI and I2C interface for communicating, which supports higher compatibility and speed.
Package Included :
1 X 1.3inch OLED Display Module