Displaying Pictures to the OLED
Before we can put an image on the screen, we have to turn a picture you want into a format that this screen and Arduino knows how to use (128 by 64 pixel OLED Screen).. Here is a tutorial for how to do that. Here is a link to a useful online tutorial.
https://learn.adafruit.com/adafruit-gfx-graphics-library/graphics-primitives
https://learn.adafruit.com/adafruit-gfx-graphics-library/graphics-primitives
Test: Displaying The OLED Manufacturer's Logo
The most basic thing we need to do first is getting the code to initialize the display. The code to the right comes directly from the manufacturer and is the minimum needed to get the display ready to start working.
If all you do is get the board started and nothing else, the logo stays up forever. Type up this code and wire the LED like the last LED lesson. Upload it to the board and make sure it works. It looks similar to this picture, but your colors may be different based on the screen colors. |