Datasheet
Arduino Library & Examples
For all of the different kinds of small OLED monochrome displays, you'll need to install the Arduino libraries. The code
we have is for any kind of Arduino, if you're using a different microcontroller, the code is pretty simple to adapt, the
interface we use is basic bit-twiddling SPI or I2C
Install Adafruit SSD1306 Library
Start by installing the support library for the OLED display, you'll need it to talk to the OLED controller chip. We have
the Adafruit SSD1306 library repository on GitHub if you're interested in looking at the code.
Start by downloading the library. You can do that by visiting the github repo and manually downloading or, easier, just
click this button to download the zip:
Download Adafruit_SSD1306 Library
https://adafru.it/e3E
Rename the uncompressed folder Adafruit_SSD1306 and check that the Adafruit_SSD1306 folder contains
Adafruit_SSD1306.cpp and Adafruit_SSD1306.h
Place the Adafruit_SSD1306 library folder your
arduinosketchfolder
/libraries/ folder.
You may need to create the libraries subfolder if its your first library. Restart the IDE.We also have a great tutorial on
Arduino library installation at:
http://learn.adafruit.com/adafruit-all-about-arduino-libraries-install-use
Install Adafruit GFX
You will need to do the same for the Adafurit_GFX library available here
Download Adafruit GFX Library
https://adafru.it/cBB
Rename the uncompressed folder Adafruit_GFX and check that the Adafruit_GFX folder contains Adafruit_GFX.cpp
and Adafruit_GFX.h
Place the Adafruit_GFX library folder your
arduinosketchfolder
/libraries/ folder like you did with the SSD1306 library
Run Demo!
After installing the Adafruit_SSD1306 and Adafruit_GFX library, restart the Arduino IDE. You should now be able to
access the sample code by navigating through menus in this order:
File→Sketchbook→Libraries→Adafruit_SSD1306→SSD1306...
© Adafruit Industries https://learn.adafruit.com/monochrome-oled-breakouts Page 7 of 28










