Wiring and Graphics Test

The pinout ordering is the same for both the 1.27" and 1.5" version of the OLED!

The library supports flexible wiring to minimize pin conflicts with other shields and breakouts. For the initial test, we'll use the same wiring as the "test" example from the library:
  • GND -> GND (G)
  • 5v -> VIN (+)
  • #2 -> SCLK (CL)
  • #3 -> MOSI (SI)
  • #4 -> DC
  • #5 -> OLEDCS (OC)
  • #6 -> RST (R)


If you are confused by the abbreviations on the front of the board, the full signal names are printed on the back!

Installing the Arduino software

Now we can run the test software on the Arduino. We'll need to download the library first and install it

Visit the Adafruit SSD1351 library github repository page and click the Download Zip. Or just click the button below:

Copy the folder inside the zip file to the Libraries folder inside your Arduino Sketchbook folder and re-name it to Adafruit_SSD1131. For more details on how to install Arduino libraries, check out our detailed tutorial! http://learn.adafruit.com/adafruit-all-about-arduino-libraries-install-use

You'll also have to install the Adafruit GFX graphics core library at this github repo. Rename it to Adafruit_GFX and install it the same way as the OLED library.

After you restart, you should be able to select File→Examples→Adafruit_SSD1351→test - this is the example sketch that just tests the display by drawing text and shapes. Upload the sketch and you should see the following:
The test sketch demonstrates all the basic drawing functions of the Adafruit GFX Library. Read through the code to see how to draw text, circles, lines, etc.

For a detailed tutorial on the Adafruit GFX library, including all the functions available please visit the GFX tutorial page
Last updated on 2016-12-05 at 04.28.58 PM Published on 2013-08-16 at 04.27.46 PM