Template: 0.91inch-OLED-Module-Arduino-Guides

From Waveshare Wiki
Jump to: navigation, search

The examples are tested in Arduino UNO, if you want to use other Arduino UNO, you need to change the connection according to the actual boards.

Hardware Connection

Arduino UNO connection
OLED UNO
VCC 3.3V/5V
GND GND
SDA SDA
SCL SCL
  • I2C connection

0.91-OLED-Aduino.jpg

Run the demo

  • Download the demo and find the Arduino demo file directory.
  • Use Arduino IDE to open the .ino file in the project folder of the corresponding model, recompile and download the demo to your board.
  • For example, if you are using the 1.3inch OLED Module (C), open OLED_1in3_c.ino under the \Arduino\OLED_1in3_c directory

Software description

  • Download the demo on the Resources, open the Arduino demo file directory, you can see the Arduino program of different models of OLED.
OLED Arduino code1.png
  • Choose the folder according to the LCD model you are using, and open the xxx.ino file. Take the 1.3inch OLED Module (C) as an example: open OLED_1in3_c, then double-click OLED_1in3_c.ino to open the Arduino project.
OLED Arduino code2.png
  • The demo folder of each LCD model can fine in the following table:
LCD Model Demo folder
0.91inch OLED Module OLED_0in91
0.95inch RGB OLED (A)/(B) OLED_0in95_rgb
0.96inch OLED (A)/(B) OLED_0in96
1.3inch OLED (A)/(B) OLED_1in3
1.3inch OLED Module (C) OLED_1in3_c
1.5inch OLED Module OLED_1in5
1.5inch RGB OLED Module OLED_1in5_rgb