Drawing Bitmaps

Wiring for the Bitmap Example

Drawing bitmaps from the on-board micro SD card requires a few more connections to communicate with the SD card. The library allows you to use any pins. The Arduino connections listed below match the code in the "bmp" example from the library:
  • GND -> GND (G)
  • 5v -> VIN (+)
  • #4 -> SDCS (SC)
  • #8 -> DC
  • #9 -> RST (R)
  • #10 -> OLEDCS (OC)
  • #11 -> MOSI (SI)
  • #12 -> MISO (SO)
  • #13 -> SCLK (CL


Note that the Bitmap example code uses hardware SPI wiring for maximum speed. You can still use software SPI, but make sure that the pin definitions match your wiring and that you modify the example to select the Software SPI option (#1) in the code. The SPI pins shown are for Atmega-328 processors. To use this wiring on other processors, software SPI must be used.

Hint:

If you are confused by the abbreviations on the front of the board, the full signal names are printed on the back!

Bitmap Example Sketch

To display bitmaps from the on-board micro SD slot, you will need a micro SD card.

Copy the bitmap file

Copy the file "lily128.bmp" from the Adafruit_SSD1351_OLED\examples\bmp folder to the root directory of your micro-SD card.

Insert the card

Insert the micro SD card into the slot on the back of the SSD1351 breakout board.

Load the bitmap example sketch

Select "Examples->Adafruit_SSD1351_OLED->bmp" and upload it to your Arduino.
When the Arduino restarts, you should see the flower as below!
This guide was first published on Aug 16, 2013. It was last updated on Aug 16, 2013. This page (Drawing Bitmaps) was last updated on May 04, 2015.