OLED Displays and LinkIt ONE Board

Introduction: OLED Displays and LinkIt ONE Board

Today, we'll be looking at how to display images and text using the 128 x 32 and 128 x 64 SPI OLED displays from Adafruit. ( http://www.adafruit.com/product/661 )

With this tutorial, you'll be able to integrate sharp, bright displays to any other projects you may be working on, either to display status updates, or vital data.

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Materials Needed

1. LinkIt ONE Board

2. OLED Display ( http://www.adafruit.com/product/661 )

3. Breadboard Wires

4. Preinstalled LinkIt ONE SDK

5. Adafruit Libraries (Search "Adafruit GitHub" and download the libraries specified in the examples)

Step 2: Wiring

Connect these pins to you LinkIt ONE Board:

GND goes to ground

Vin goes to 5V

DATA to digital 9

CLK to digital 10

D/C to digital 11

RST to digital 13

CS to digital 1

Step 3: Programming

After you've downloaded the Adafruit SSD1306 library, open up the example that corresponds to your specific OLED display. In our case, we used the 128 x 32 SPI display.

Looking at the top of the program, install any other libraries that may be needed. These include the SPI, Wire, and GFX libraries. They can all be taken from the Adafruit GitHub page.

Running the example will cause images and vectors to flash across the screen.

Step 4: Conclusion

Congrats! You've managed to utilize your OLED display and show some simple graphics and vectors as an example. Try out some of your own code based off of the example, and be sure to share your findings with us! If you have any questions, feel free to ask!

Epilog Contest VII

Participated in the
Epilog Contest VII

Robotics Contest

Participated in the
Robotics Contest

Tech Contest

Participated in the
Tech Contest

Be the First to Share

    Recommendations

    • Backyard Contest

      Backyard Contest
    • Silly Hats Speed Challenge

      Silly Hats Speed Challenge
    • Finish It Already Speed Challenge

      Finish It Already Speed Challenge

    Discussions

    0
    washingtonj84
    washingtonj84

    4 years ago

    I get these errors when trying to compile:

    Adafruit_SSD1306.cpp:In member function 'void Adafruit_SSD1306::begin(uint8_t, uint8_t, bool)
    Adafruit_SSD1306.cpp:169:57: error: 'digitalPinToPort' was not declared in this scope
    :csport = portOutputRegister(digitalPinToPort(cs))
    Adafruit_SSD1306.cpp:169:58: error: 'portOutputRegister' was not declared in this scope
    :csport = portOutputRegister(digitalPinToPort(cs))
    Adafruit_SSD1306.cpp:170:41: error: 'digitalPinToBitMask' was not declared in this scope
    :cspinmask = digitalPinToBitMask(cs)
    Adafruit_SSD1306.cpp:In member function 'void Adafruit_SSD1306::display()
    Adafruit_SSD1306.cpp:510:26: error: 'TWBR' was not declared in this scope
    :uint8_t twbrbackup = TWBR
    Error compiling libraries

    Any ideas?

    Thanks!