Finnian's blog

Software Engineer based in New Zealand

1-Minute Read

Quite a while ago I saw a 0.96" OLED display for sale on Ebay for £4.45 and thought it sounded a good price. It arrived and I was quite busy at the time so it went into my modules drawer.

The other day I was tidying up and ordering my electronics and rediscovered it. So today I decided to see if I could get it to work with my Arduino Duemilanove.

Firstly, wiring. The display has 4 pins, 5v, GND, SCL and SDA (quite hard to see in this pic).

The Arduino’s SCL pin is analog 5 and SDA is analog 4.

Once you’ve wired it up, you need to install the libraries that are needed to control the display. These are on Adafruit’s GitHub here:

GFX & SSD1306

(Installation instructions in the README)

Now reopen the Arduino IDE and open the example file located in Examples/Adafruit_SSD1306/ssd1306_128x64_i2c (if it’s not there look in your sketchbook/libraries

Change line 61 to say:

display.begin(SSD1306_SWITCHCAPVCC, 0x3C);


If you now look at your display it should go through a sequence of graphic and text based displays.

Recent Posts