Skip to content

Use OLED display + Arduino with examples


           Hello everybody, in this tutorial I’m using 128*32 i2c OLED display that I bought for few bucks, it’s very tiny you can use it in some small DIY projects also it gives you lot of possibilities to do (Different font and sizes of texts, different shapes, scrolling, bmp pictures…) and in this tutorial I just went through some simple functions to make it clear and simple for beginners like me… Please note that this kind of display isn’t a color display, mine just print in blue (Left), some are in white, some can have yellow + one of the previous colors (Right).



While making this little tutorial I went to these links they’re helpful, if you want to check them:



This is my wiring, it depends on your version, the one I’m using has 4 pins and I used them in the schematic, you may add RST pin…

I2C OLED wired with Arduino UNO board


Donwload Adafruit SSD1306 library

Download Adafruit GFX library

Or you can visit the link above to download them directly from Adafruit


Download the code I used .ino or check below, I added some comments to make it easy to understand.

Code 1:


Other codes:

The other codes shown are  examples from the library.


If you have any question, suggestion or problem… don’t hesitate.

Yassine View All

Automation and Electrical Engineer, Electronics amateur trying to share my little projects.

9 thoughts on “Use OLED display + Arduino with examples Leave a comment

Leave a Reply

%d bloggers like this: