OLED 0.96 I2C 128x64 White (SSD1306) [D044]



https://www.youtube.com/watch?v=hdcyJQNt0E0


*GitHub : https://github.com/rdiot/rdiot-d044.git


* Specs

128X64 OLED LCD LED Display Module white For Arduino 0.96" I2C IIC SPI Serial new original



* Contents

- Library : https://bintray.com/olikraus/u8glib/Arduino

- Library Desc : http://code.google.com/p/u8glib/wiki/u8glib


- Key Code

#include "U8glib.h"


U8GLIB_SSD1306_128X64 u8g(U8G_I2C_OPT_NONE);


void loop(void) {

  // picture loop

  u8g.firstPage();  

  do {

    draw();

  } while( u8g.nextPage() );


  // rebuild the picture after some delay

  delay(500);

}


void draw(void) {

  u8g.setFont(u8g_font_9x15B);

  u8g.setPrintPos(0, 12); 

  u8g.println("OLED 0.96 ");


  u8g.setFont(u8g_font_helvB14);

  u8g.setPrintPos(0,40);

  u8g.println("I2C 128x64");


  u8g.setPrintPos(0,60); 

  u8g.print("Blue"); // Actually White

}

Posted by RDIoT
|