Skip to content
Advertisements

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…

circuit

Libraries and codes:

Donwload Adafruit SSD1306 library

Download Adafruit GFX library

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

Code:

Download the code I used .ino I added some comments to make it easy to understand

and the other code shown is the example from the library.

 

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

Advertisements

Yassine View All

Electronics, Automation engineering student... I try to share my little experience with other electronics amateur.

One thought on “Use OLED display + Arduino with examples Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: