Download Print this page

Waveshare 10451 User Manual

1.3inch oled

Advertisement

Quick Links

1.3inch OLED User Manual
1.
Key Parameters
Table 1: Key Parameters
Driver Chip
Interface
Resolution
Display Size
Dimension
Colors
Visible Angle
Operating Temp. (℃)
Storage Temp. (℃)
2.
Operation Description
We will illustrate the usage of the module with an example of 4-wire SPI mode (default working mode)
by connecting Waveshare Open103R development board (STM32F103R MCU on board).
2.1. Hardwar e configuration
This module provides 3 kinds of driver interfaces; they are 3-wire SPI, 4-wire SPI and I2C interface. In
its factory settings, BS0/BS1 pins are set to 0/0 and 4-wire SPI is selected as default.
Different working mode and pin function of the module can be set by hardware selection on BS0/BS1
pins. (Notice: In this operation, welding is required. Any changes under no guidance from Waveshare
will be considered as a waiver of warranty).
Table 2: Working mode setting
name
BS1/BS0
mode
3-wire SPI
0/1
4-wire SPI
0/0
I2C
1/0
th
Rev 2.4, May 15
2015
SH1106
3-wire SPI、4-wire SPI、I2C
128*64
1.3 inch
29mm*33mm
Yellow, Blue
>160°
-20℃~70℃
-30℃~80℃
CS
D/C
DIN
CLK
CS
0
MOSI
SCLK
CS
D/C
0
0/1
SDA
SCL
share awesome hardware
1.3inch OLED
User Manual
1

Advertisement

loading

Summary of Contents for Waveshare 10451

  • Page 1 Different working mode and pin function of the module can be set by hardware selection on BS0/BS1 pins. (Notice: In this operation, welding is required. Any changes under no guidance from Waveshare will be considered as a waiver of warranty).
  • Page 2: Software Configuration

    share awesome hardware 1.3inch OLED User Manual 2.2. Softwar e configuration Open the project file .\IDE\ OLED.uvproj in Keil, navigate to the following text, delete the ‘//’ (Double slash) before #define INTERFACE_4WIRE_SPI //#define INTERFACE_3WIRE_SPI //3-wire SPI #define INTERFACE_4WIRE_SPI //4-wire SPI //#define INTERFACE_IIC //I2C After compiling successfully, download the project to Open103R development board.
  • Page 3 share awesome hardware 1.3inch OLED User Manual 4-wire SPI and I2C interfaces of SH1106 OLED The 8080-Parallel Interface, 6800-Parallel Interface, Serial Interface (SPI) or I2C Interface can be selected by different selections of IM0~2 as shown in Table 3: Table 3: Different selections of IM0~2 (SH1106_V2.3.pdf Chap.
  • Page 4: I2C-Bus I Nterface

    share awesome hardware 1.3inch OLED User Manual The serial interface is initialized when CS is high. In this state, SCL clock pulse or SDI data have no effect. A falling edge on CS enables the serial interface and indicates the start of data transmission. The SPI is also able to work properly when the CS always keep low, but it is not recommended.
  • Page 5 share awesome hardware 1.3inch OLED User Manual The I2C-bus is for bi-directional, two-line communication between different ICs or modules. The two lines are a serial data line (SDA) and a serial clock line (SCL). Both lines must be connected to a positive supply via a pull-up resistor.
  • Page 6 share awesome hardware 1.3inch OLED User Manual Figure 4: Start and Stop conditions Acknowledge Each byte of eight bits is followed by an acknowledge bit. The acknowledge bit is a HIGH signal put on the bus by the transmitter during which time the master generates an extra acknowledge related clock pulse.
  • Page 7 share awesome hardware 1.3inch OLED User Manual address is set by connecting the input SA0 to either logic 0(VSS) or 1 (VDD1). The I2C-bus protocol is illustrated in Figure 6: I2C Protocol. The sequence is initiated with a START condition (S) from the I2C-bus master that is followed by the slave address.
  • Page 8 100H016A-LPP5N00000 OLED-128Y032A-WPP3N00000 OLED-100H016A-WPP5N00000 OLED-100H016H-GPP5N00000 OLED- 016O002B-BPP5N00000 OLED-096Y064A-LPP3N00000 OLED-096O064A-BPP3N00000 OLED-128Y064C-LPP3N00000 OLED- 096Y064B-LPP3N00000 OLED-128Y032A-LPP3N00000 OLED-096Y064B-BPP3N00000 REH012864KYPP3N00F00 HDSP-U111-EG000 REC001601BWPP5N00100 REG010016FBPP5N00100 REG010016FGPP5N00100 REG010016FWPP5N00100 REG010032AWPP5N00100 REX064128AWPP3N0Y000 14747 REA160128AYPP3N00000 REN025664DGPP3L00000 REN025664DYPP3L00000 104020248 10451 19750 19376 19299 16103 10507 10444 13992 14657 10514 9085 REG010008AGPP5N00000 REG010008AWPP5N00000 REG010016CRPP5N00000 REG010016DBPP5N00000 REG010016ERPP5N00000 REG010032BYPP5N00000...