Skip to content

Our Eigth Lab: Using an OLED Digital Display

We will use the SSD1306 OLED display in this lab.

  1. Insert the display into f25, f26, f27, and f28

  2. Using one of the jumper wires, insert one end to i25 and the other end into i18

  3. Using another jumper wire, insert one end to j26 and the other end into j5

  4. Using another jumper wire, insert one end to h27 and the other end into b2

  5. Using another jumper wire, insert one end to i28 and the other end into a1

  6. When you are finished, your breadboard should look similar to the image below (Note: your wires may be different colors)

Lab 8

Working With the SSD1306 Display

  • We'll need to add the SSD1306 Library to our microcontroller. This can be done through the Install ssd1306 library button in the Display OLED Display section:

    SSD1306 Library

  • Our display uses an Inter-Integrated Circuit (I2C) interface. The I2C interface was first developed by Phillips Semiconductor in 1982 to facilitate serial communication between devices.

  • Initialize the display with the Init I2C SSDD1306 OLED Display block, taking care to set I2C to 0, SCL to Pin 2, and SDA to Pin 1.

    Initialize the SSD1306

  • Now we can write "Hello" to the display with the Write text on display block

    Write Hello

Challenge

  • Start by writing your name to the display at the top left corner (0, 0).

  • Pause for 1 second

  • Clear the screen (use the Clear OLED Display block)

  • Move your name down and to the right

  • Pause again

  • Continue moving down and to the right until you get to the bottom or the right edge of the screen.