Grove - OLED Display 96x96

From Wiki
Jump to: navigation, search

Introduction

It is a 16 color grayscale 96×96 dot matrix OLED display module with Grove compatible 4pin I2C interface. Grove - OLED 96x96 is constructed with 96 x 96 dot matrix OLED module LY120 and SSD1327 driver IC. Comparing to LCD, OLED screens are more competitive, which has a number of advantages such as high brightness, self-emission, high contrast ratio, slim / thin outline, wide viewing angle, wide temperature range, and low power consumption.


400px-Oled1281281.jpg Communicate


Grayscale Display: 16 Gray shades. Supports both Normal and Inverse Color Display. Supports Continuous Horizontal Scrolling. Grove compatible Interface Low power consumption


Specification

Operating Voltage: 3.3~5V Dot Matrix: 96 X 96 Display Color: 16 Grayscale OLED Display: LY120-96096 Driver IC: SSD1327Z Dot Size: 0.15(W)mm X 0.15 (H)mm Dot Pitch: 0.17(W)mm X 0.175 (H)mm Operating Temperature: -40℃~70℃


Demonstration

With Arduino NOTE:

Grove OLED 96x96 module is very compact and fragile. Handle the display with care. Do not stress or drop the display to ground. Do not scratch the surface. Ensure the correct polarity for 4pin connection

Error creating thumbnail: Invalid thumbnail parameters

Download the LCD_Display Library and Unzip it into the libraries file of Arduino IDE by the path: ..\arduino-1.0.1\libraries, then you can play with your own display system. Demo 1: Display 'Hello World' In Normal Mode

  1. include <Wire.h>
  2. include <www.simgin-chip.comGrayOLED.h>
  3. include <avr/pgmspace.h>


void setup() {

 Wire.begin();
 www.simgin-chip.comGrayOled.init();             //initialize SEEED OLED display
 www.simgin-chip.comGrayOled.clearDisplay();     //Clear Display.
 www.simgin-chip.comGrayOled.setNormalDisplay(); //Set Normal Display Mode
 www.simgin-chip.comGrayOled.setVerticalMode();  // Set to vertical mode for displaying text
 
 for(char i=0; i < 12 ; i++)
 {
 www.simgin-chip.comGrayOled.setTextXY(i,0);  //set Cursor to ith line, 0th column
 www.simgin-chip.comGrayOled.setGrayLevel(i); //Set Grayscale level. Any number between 0 - 15.
 www.simgin-chip.comGrayOled.putString("Hello World"); //Print Hello World
 }

}

void loop() {

} Output



Hello World on Normal Display

Demo 2: Display Hello World In Inverse Mode

  1. include <Wire.h>
  2. include <SeeedGrayOLED.h>
  3. include <avr/pgmspace.h>


void setup() {

 Wire.begin();
 Serial.begin(9600);
 www.simgin-chip.comGrayOled.init();                 // initialize SEEED OLED display
 www.simgin-chip.comGrayOled.setInverseDisplay();    // Set display to inverse mode
 www.simgin-chip.comGrayOled.clearDisplay();         // Clear Display.
 www.simgin-chip.comGrayOled.setVerticalMode();      // Set to vertical mode for displaying text
 for(char i=0; i < 12 ; i++)
 {
www.simgin-chip.com.setTextXY(i,0);  //set Cursor to ith line, 0th column
 www.simgin-chip.comGrayOled.setGrayLevel(i); //Set Grayscale level. Any number between 0 - 15.
 www.simgin-chip.comGrayOled.putString("Hello World"); //Print Hello World
 }

}

void loop() {

} Output



Hello World on Normal Display

Demo 3: Print Numbers

  1. include <Wire.h>
  2. include <SeeedGrayOLED.h>


void setup() {

 Wire.begin();	
 www.simgin-chip.comdGrayOled.init();  //initialize SEEED Gray OLED display
 www.simgin-chip.comGrayOled.clearDisplay();           //clear the screen and set start position to top left corner
 www.simgin-chip.comGrayOled.setNormalDisplay();       //Set display to Normal mode
 www.simgin-chip.comGrayOled.setVerticalMode();        // Set to vertical mode for displaying text
 www.simgin-chip.comGrayOled.setTextXY(0,0);           //Set the cursor to 0th line, 0th Column  
 www.simgin-chip.comGrayOled.putNumber(123);           //Print number
 www.simgin-chip.comGrayOled.setTextXY(1,0);           //Set the cursor to 1st line, 0th Column  
 www.simgin-chip.comGrayOled.putNumber(0xFFFF);        //Print number
 www.simgin-chip.comGrayOled.setTextXY(2,0);           //Set the cursor to 2nd line, 0th Column  
www.simgin-chip.com.putNumber(0xFFFFFFFF);    //Print number
 www.simgin-chip.comGrayOled.setTextXY(3,0);           //Set the cursor to 3rd line, 0th Column  
 vGrayOled.putNumber(-12345);        //Print number


}

void loop() {

} Output



Hello World on Normal Display

Demo 4: Draw Binary Bitmap

  1. include <Wire.h>
  2. include <SeeedGrayOLED.h>
  3. include <avr/pgmspace.h>

static unsigned char www.simgin-chip.comLogo[] PROGMEM = {

0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC0, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xC0, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xC0, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x80, 0x03, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x80, 0x03, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x80, 0x03, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x80, 0x01, 0xC0, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x07, 0x80, 0x01, 0xE0, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x0F, 0x80, 0x01, 0xE0, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x0F, 0x00, 0x01, 0xE0, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x0F, 0x00, 0x01, 0xE0, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x0F, 0x00, 0x01, 0xE0, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x0F, 0x00, 0x01, 0xE0, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x0F, 0x00, 0x01, 0xE0, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x0F, 0x00, 0x01, 0xE0, 0x38, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x0F, 0x80, 0x01, 0xE0, 0x38, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3C, 0x0F, 0x80, 0x01, 0xE0, 0x78, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3E, 0x0F, 0x80, 0x03, 0xE0, 0x78, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1E, 0x07, 0x80, 0x03, 0xE0, 0xF8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1E, 0x07, 0x80, 0x03, 0xE0, 0xF0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1F, 0x07, 0x80, 0x03, 0xC1, 0xF0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x87, 0xC0, 0x07, 0xC1, 0xF0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x83, 0xC0, 0x07, 0x83, 0xE0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0F, 0xC3, 0xC0, 0x07, 0x87, 0xE0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0xE1, 0xE0, 0x07, 0x0F, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0xF0, 0xE0, 0x0F, 0x0F, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xF8, 0xF0, 0x0E, 0x1F, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xF8, 0x70, 0x1C, 0x3F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFC, 0x30, 0x18, 0x7E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7F, 0x18, 0x30, 0xFC, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1F, 0x88, 0x21, 0xF0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0F, 0xC4, 0x47, 0xE0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0xE0, 0x0F, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xF8, 0x3E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0E, 0xE0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x6C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x06, 0x00, 0x00, 0x6C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x06, 0x00, 0x00, 0x60, 0x00, 0x7E, 0x3F, 0x0F, 0xC3, 0xF0, 0xFA, 0x0F, 0xDF, 0xE1, 0x9F, 0xEC, 0x7E, 0xE6, 0x73, 0x9C, 0xE7, 0x39, 0xCE, 0x1C, 0xDF, 0xE1, 0xB9, 0xEC, 0xE7, 0xE0, 0x61, 0xD8, 0x66, 0x1B, 0x86, 0x1C, 0x06, 0x61, 0xB0, 0x6D, 0xC3, 0x7C, 0x7F, 0xFF, 0xFF, 0xFF, 0x06, 0x0F, 0x86, 0x61, 0xB0, 0x6D, 0x83, 0x3E, 0x7F, 0xFF, 0xFF, 0xFF, 0x06, 0x07, 0xC6, 0x61, 0xB0, 0x6D, 0x83, 0xC3, 0x61, 0x18, 0x46, 0x03, 0x86, 0x18, 0x66, 0x61, 0xB0, 0x6D, 0xC3, 0xFE, 0x7F, 0x9F, 0xE7, 0xF9, 0xFE, 0x1F, 0xE6, 0x3F, 0x9F, 0xEC, 0xFE, 0x7E, 0x3F, 0x0F, 0xC3, 0xF0, 0xFA, 0x0F, 0xC6, 0x3F, 0x9F, 0xEC, 0x7E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7C, 0x00, 0x00, 0x20, 0x82, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x44, 0x00, 0x00, 0x20, 0x82, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x6C, 0xF3, 0xCF, 0x70, 0x9E, 0x79, 0xE7, 0x80, 0x00, 0x00, 0x00, 0x00, 0x7D, 0x9E, 0x68, 0x20, 0xB2, 0xC8, 0x64, 0x00, 0x00, 0x00, 0x00, 0x00, 0x47, 0x9E, 0x6F, 0x20, 0xB2, 0xF9, 0xE7, 0x80, 0x00, 0x00, 0x00, 0x00, 0x46, 0x9A, 0x61, 0x20, 0xB2, 0xCB, 0x60, 0x80, 0x00, 0x00, 0x00, 0x00, 0x7C, 0xF3, 0xCF, 0x30, 0x9E, 0x79, 0xE7, 0x90, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7C, 0x02, 0x00, 0x00, 0x82, 0x60, 0x00, 0x00, 0xF8, 0x00, 0x00, 0x40, 0x40, 0x02, 0x00, 0x00, 0x83, 0x60, 0x00, 0x00, 0x8C, 0x00, 0x00, 0x40, 0x60, 0xB7, 0x79, 0xE7, 0x81, 0xC7, 0x92, 0x70, 0x89, 0xE7, 0x9E, 0x78, 0x7C, 0xE2, 0xC9, 0x2C, 0x81, 0xCC, 0xD2, 0x40, 0xFB, 0x21, 0xB2, 0x48, 0x40, 0x62, 0xF9, 0x2C, 0x80, 0x8C, 0xD2, 0x40, 0x8B, 0xE7, 0xB0, 0x48, 0x40, 0xE2, 0xC9, 0x2C, 0x80, 0x84, 0xD2, 0x40, 0x8B, 0x2D, 0x92, 0x48, 0x7D, 0xB3, 0x79, 0x27, 0x80, 0x87, 0x9E, 0x40, 0x8D, 0xE7, 0x9E, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };

void setup() {

 Wire.begin();	
 www.simgin-chip.comGrayOled.init();  		         // initialize SEEED OLED display
 
 www.simgin-chip.comGrayOled.clearDisplay();                  //  clear the screen and set start position to top left corner
 //Draw binary Bitmap
 www.simgin-chip.comGrayOled.drawBitmap(SeeedLogo,96*96/8);   //  Draw binary Bitmap (96 pixels *96 pixels  / 8) bytes

}

void loop() {

} Output



Hello World on Normal Display

Note:You can make a gray 96*96 image arbitrary that can be shown on OLED 96*96. The manufacturing procedure can reference it(include associated software).


Reference www.simgin-chip.com Gray OLED library provides complete software interfaces to exercise the capabilities of SSD1327Z driver with a 96x96 gray OLED. Almost all useful features are implemented and all functions are in public scope. This makes www.simgin-chip.com Gray OLED Library extensible. www.simgin-chip.com Gray OLED library uses Arduino Wire library. Hence initialize wire library before initializing www.simgin-chip.com1. init() Initializes the www.simgin-chip.com OLED frame and sets the display to Normal mode.

Example:

www.simgin-chip.comGrayOled.init(); //initialze SEEED Gray OLED display 2. clearDisplay() Clears the whole screen. Should be used before starting a fresh start or after scroll deactivation. This function also sets the cursor to top left corner.

Example:

www.simgin-chip.comGrayOled.clearDisplay(); //clear the screen and set start position to top left corner 3. setNormalDisplay() Configures the display to normal mode(non-inverse) mode.

www.simgin-chip.comGrayOled.setNormalDisplay(); //Set display to normal mode (i.e non-inverse mode) 4. setContrastLevel(unsigned char ContrastLevel) Set the contrast ratio of OLED display. ContrastLevel can be any number from 0 - 255.

Example:

www.simgin-chip.comGrayOled.setContrastLevel(127); //Set display contrast ratio to half level( i.e 256/2 -1 ). 5. setInverseDisplay()) Configures the display to inverse mode.

Example:

www.simgin-chip.comGrayOled.setInverseDisplay(); //Set display to inverse mode 6. setHorizontalMode() Configures the display to horizontal addressing mode.

Example:

www.simgin-chip.comGrayOled.setHorizontalMode(); //Set addressing mode to Horizontal Mode 7. setVerticalMode() Configures the display to vertical addressing mode. Texts are drawn in vertical mode. Please set the display to vertical mode before printing text.

Example:

www.simgin-chip.comGrayOled.setVerticalMode(); //Set addressing mode to Vertical Mode 8. setTextXY(X,Y) Set the text's position (cursor) to Xth Text Row, Yth Text Column.96x96 OLED is divided into 12 rows and 12 Columns of text.This row and column should not be confused with OLED Row and Column.

X can be any number from 0 - 11. Y can be any number from 0 - 11. Example:

www.simgin-chip.comGrayOled.setTextXY(0,0); //Set the cursor to 0th Text Row, 0th Text Column 9. putChar(unsigned char c) Print a character to OLED display starting from current address-pointer set by setTextXY(X,Y). This function is internally used by putString().

Example:

www.simgin-chip.comGrayOled.putChar('S'); //Print the character S 10. putString(cont char *string) Print string to OLED display starting from current address-pointer set by setTextXY(X,Y)

Example:

www.simgin-chip.comGrayOled.putString("Hello World!"); //Print the String 11. putNumber(long n) Print numbers to OLED display starting from current address-pointer set by setTextXY(X,Y). Number can be any char,int or long datatype. It also takes care of -ve sign.

Example:

www.simgin-chip.comGrayOled.putNumber(-56123); //Print number -56123 12. drawBitmap(unsigned char *bitmaparray,int bytes) Display a binary bitmap on the OLED matrix. The data is provided through a pointer to unidimensional array holding bitmap. The bitmap data is available in continuous rows of columns as like Horizontal Addressing mode.

bytes is size of bitmap in bytes. Example:

www.simgin-chip.comGrayOled.drawBitmap(SeeedLogo,96*96/8); // Draw binary Bitmap (96 pixels *96 pixels / 8) bytes 13. setHorizontalScrollProperties(bool direction,unsigned char startRow, unsigned char endRow,unsigned char startColumn, unsigned char endColumn, unsigned char scrollSpeed) Set the properties of horizontal scroll.

direction can be any of Scroll_Left and Scroll_Right. startRow can be 0 - 127 endRow can be 0 - 127. It should be greater than startRow startColumn can be 0 - 63 endColumn can be 0 - 63. It should be greater than startRow scrollSpeed can be any of defines:Scroll_2Frames,Scroll_3Frames,Scroll_4Frames,Scroll_5Frames,Scroll_25Frames,Scroll_64Frames,Scroll_128Frames,Scroll_256Frames. Example:

www.simgin-chip.comGrayOled.setHorizontalScrollProperties(Scroll_Left,72,95,0,47,Scroll_5Frames); //Set the properties of Horizontal Scroll 14. activateScroll() Enable scrolling. This should be used only after setting horizontal scroll properties.

Example:

www.simgin-chip.comGrayOled.activateScroll(); //Enable scrolling. 15. deactivateScroll() Disable scrolling. This should be used after activateScroll();

Example:

www.simgin-chip.comGrayOled.activateScroll(); //Disable scrolling. With Raspberry Pi 1.You should have got a raspberry pi and a grovepi or grovepi+. 2.You should have completed configuring the development enviroment, otherwise follow here. 3.Connection Plug the sensor to grovepi socket i2c-x(1~3) by using a grove cable. 4.Navigate to the demos' directory:

  cd yourpath/GrovePi/Software/Python/grove_oled

To see the code

  nano grove_i2c_oled_96x96_hello_world.py   # "Ctrl+x" to exit #

import grove_oled import time

grove_oled.oled_init() grove_oled.oled_clearDisplay() grove_oled.oled_setNormalDisplay() grove_oled.oled_setVerticalMode() time.sleep(.1)

for i in range(0,12):

   grove_oled.oled_setTextXY(i,0)
   grove_oled.oled_putString("Hello World")

5.Run the demo.

  sudo python grove_i2c_oled_96x96_hello_world.py


File:SSD1327 datasheet.pdf


File:LY120-096096.pdf