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:

https://learn.adafruit.com/adafruit-gfx-graphics-library/graphics-primitives

http://henrysbench.capnfatz.com/henrys-bench/arduino-adafruit-gfx-library-user-guide/arduino-adafruit-gfx-pixels-and-lines/

 

Wiring:

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



Libraries:

Donwload Adafruit SSD1306 library

Download Adafruit GFX library

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

Codes:

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.

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

Leave a Reply

Discover more from SURTR TECHNOLOGY

Subscribe now to keep reading and get access to the full archive.

Continue reading