Monday, November 23, 2015

Arduino Due and OLED Display using U8GLIB library in SPI mode

Getting started with 0.96 Inch 128x64 White SPI OLED Display Module from Banggood using U8GLIB library on Arduino Due.

Thanks to 32bit microcontroller of Arduino Due, the rendering of animation is superfast, compared to previous 8bit Arduino board versions.

U8GLIB  Universal 8bit Graphics Library 

Sketch/code for above quick project is available on my GitHub page here
//I used following pin connections, you can use any other free pins of your board but make sure to use same pin numbering while calling the constructor in main code.
// 13 - SCL    or   CLK   13
// 11 - SDA    or   MOSI  
// 8  - RES     or   RESET 8
// 7  - DC       or   DC    7
// 10 - keep open

// U8GLIB_SSD1306_128X64 u8g(13, 11, 10, 9, 8);    //constructor used to call display

Display purchased from