Adafruit SSD1306 Manual

Adafruit SSD1306 Manual

Monochrome oled breakouts

Advertisement

Monochrome OLED Breakouts
Created by Ladyada
Last updated on 2014-03-05 08:15:08 AM EST

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SSD1306 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Adafruit SSD1306

  • Page 1 Monochrome OLED Breakouts Created by Ladyada Last updated on 2014-03-05 08:15:08 AM EST...
  • Page 2: Table Of Contents

    Using with SPI Wiring 128x32 SPI OLED display 128x32 SPI OLED Wiring 128x32 I2C Display 128x32 I2C OLED Wiring OLD 0.96" 128x64 OLED 128x64 Version 1.0 OLED Downloads Buy OLED Displays Forums © Adafruit http://learn.adafruit.com/monochrome-oled-breakouts Page 2 of 22 Industries...
  • Page 3: Overview

    Because the display makes its own light, no backlight is required. This reduces the power required to run the OLED and is why the display has such high contrast; we really like this miniature display for its crispness! © Adafruit http://learn.adafruit.com/monochrome-oled-breakouts Page 3 of 22...
  • Page 4 The driver chip, SSD1306 can communicate in multiple ways including I2C, SPI and 8-bit parallel. However, only the 128x64 display has all these interfaces available. For the 128x32 OLED, only SPI is available. Frankly, we prefer SPI since its the most flexible and uses a small number of I/O pins so our example code and wiring diagram will use that.
  • Page 5: Power Requirements

    0.96" 128x64 OLED The older 0.96" 128x64 OLED is a little more complex to get running as it is not 5V compatible by default, so you have to provide it with 3.3V power. © Adafruit http://learn.adafruit.com/monochrome-oled-breakouts Page 5 of 22...
  • Page 6 If you're not using the charge pump, connect this to a 7-9V DC power supply. For most users, we suggest connecting VDD and VBAT together to 3.3V and then leaving VCC unconnected. © Adafruit http://learn.adafruit.com/monochrome-oled-breakouts Page 6 of 22...
  • Page 7: Arduino Library & Examples

    The OLED SSD1306 driver is based on the Adafruit GFX library which provides all the underlying graphics functions such as drawing pixels, lines, circles, etc. For more details about what you can do with the OLED check out the GFX library tutorial (http://adafru.it/aPx)
  • Page 8: Create Bitmaps

    You can create bitmaps to display easily with the LCD assistant software (http://adafru.it/aPs). First make your image using any kind of graphics software such as photoshop or Paint and save as a Mo no chro me Bitmap (bmp) © Adafruit http://learn.adafruit.com/monochrome-oled-breakouts Page 8 of 22 Industries...
  • Page 9 Select the following options (You might also want to try Ho rizo ntal if Vertical is not coming out right) and import your monochrome bitmap image. Save the output to a cpp file © Adafruit http://learn.adafruit.com/monochrome-oled-breakouts Page 9 of 22...
  • Page 10 You can use the output directly with our example code © Adafruit http://learn.adafruit.com/monochrome-oled-breakouts Page 10 of 22 Industries...
  • Page 11: Wiring 128X64 Oleds

    The nice thing about the 128x64 OLEDs is that they can be used with I2C (+ a reset line) or SPI. SPI is generally faster than I2C but uses more pins. It's also easier for some microcontrollers to use SPI. Anyways, you can use either one with this display Using with I2C © Adafruit http://learn.adafruit.com/monochrome-oled-breakouts Page 11 of 22 Industries...
  • Page 12: Using With Spi

    The breakouts are ready for SPI by default, but if you used them for I2C at some point, you'll need to remove the solder jumpers. Use wick or a solder sucker to make sure both are clear! © Adafruit http://learn.adafruit.com/monochrome-oled-breakouts...
  • Page 13 This matches the example code we have written. Once you get this working, you can try another set of pins. Finally you can run the File® ® Sketchbo o k® ® Libraries® ® Adafruit_SSD1306® ® SSD1306_128x64_spi example © Adafruit http://learn.adafruit.com/monochrome-oled-breakouts Page 13 of 22 Industries...
  • Page 14: Wiring 128X32 Spi Oled Display

    9, CLK to digital 10, D/C to digital 11, RST to digital 13 and finally CS to digital 12. (Note: If using the display with other SPI devices, D/C, CLK and DAT may be shared, but CS © Adafruit http://learn.adafruit.com/monochrome-oled-breakouts...
  • Page 15 If you're using the 128x32 OLED, be sure to uncomment the "#define SSD1306_128_32" in the top of Adafruit_SSD1306.h to change the buffer size SSD1306_128_32" in the top of Adafruit_SSD1306.h to change the buffer size © Adafruit http://learn.adafruit.com/monochrome-oled-breakouts Page 15 of 22...
  • Page 16: Wiring 128X32 I2C Display

    First up, take a piece of 0.1" header 6 pins long. Plug the header long end down into a breadboard Place the OLED on top Solder the short pins into the OLED PCB. © Adafruit http://learn.adafruit.com/monochrome-oled-breakouts Page 16 of 22 Industries...
  • Page 17 This matches the example code we have written. Once you get this working, you can change the RST pin. You cannot change the I2C pins, those are 'fixed' in hardware Finally you can run the File® ® Sketchbo o k® ® Libraries® ® Adafruit_SSD1306® ® SSD1306_128x32_i2c example © Adafruit http://learn.adafruit.com/monochrome-oled-breakouts Page 17 of 22 Industries...
  • Page 18: Wiring Old 0.96" 128X64 Oled

    0.1" header 10 pins long. Place the header in a breadboard and then place the left hand side of the OLED on top. And solder the pins © Adafruit http://learn.adafruit.com/monochrome-oled-breakouts Page 18 of 22 Industries...
  • Page 19 12 to pin 5, 11 to pin 9, 10 to pin 11 and 9 to pin 14. This matches the example code we have written. Once you get this working, you can try another set of pins. © Adafruit http://learn.adafruit.com/monochrome-oled-breakouts Page 19 of 22 Industries...
  • Page 20: Downloads

    Downloads Yo u can do wnlo ad o ur SSD1306 OLED display Arduino library fro m github (http: //adafru.it/aHq) which comes with example code. The library can print text, bitmaps, pixels, rectangles, circles and lines. It uses 1K of RAM since it needs to buffer the entire display but its very fast! The code is simple to adapt to any other microcontroller.
  • Page 21: Buy Oled Displays

    Buy OLED Displays Buy OLED Displays (http://adafru.it/aJN) © Adafruit http://learn.adafruit.com/monochrome-oled-breakouts Page 21 of 22 Industries...
  • Page 22: Forums

    Forums Forums (http://adafru.it/forums) © Adafruit Industries Last Updated: 2014-03-05 08:15:09 AM EST Page 22 of 22...

Table of Contents

Save PDF