Grove - OLED Display 0.96 inch


Grove - OLED Display 0.96” module is an OLED monochrome 128×64dot matrix display module with Grove 4pin I2C Interface.Comparing to LCD, OLED screens are way 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. It has bigger screen so that it can display more contents than the OLED 96×96.


  • Grove compatible interface
  • Communicate Mode:I2C
  • Low power consumption
  • Display Color: White
  • Wide range of operating temperature:-20℃~70℃


Please notice: heavy impact or stress on the OLED will cause the breakdown of screen.


More details about Grove modules please refer to Grove System


Items Min Norm Max Unit
Power Voltage (VCC) 3.3 5.0 5.5 V
Driver IC - SSD1308Z - -
Display Color - White - -
Dot Matrix - 128×64 - -
Panel Size - 26.7(W)×19.26(H) - mm
Active Area - 21.74(W)×11.175 (H) - mm
Dot Pitch - 0.17(W)×0.175 (H) - mm
Dot Size - 0.15(W)×0.15 (H) - mm
Wide range of operating temperature - -20~70 -

Getting Started

With Arduino

The OLED128*64 uses all the pins of SSD1308 chip, the default original point is on the top left corner. You can also change the original point by adjusting the program and in order to display your desired patterns. For more details, please consult SSD1308_1.0.pdf and LY190-128064.pdf.

Here we demonstrate how to display “Hello World” on the screen.

  • Plug the Grove OLED Display 128*64 onto the I2C port on Grove Base Shield, and then plug the Base Shield onto Arduino or Seeeduino;

  • Download the library code from GitHub;

  • Download and upload the code. If you do not know how to upload an Arduino sketch, please visit for Windows user or for Mac user. You can see the result as below.

Tips: if you use Seeeduino, please also select Boards under Tools as you upload sketches.

With Beaglebone Green

To begin editing programs that live on BBG, you can use the Cloud9 IDE. As a simple exercise to become familiar with Cloud9 IDE, creating a simple application to blink one of the 4 user programmable LEDs on the BeagleBone is a good start. If this is your first time to use Cloud9 IDE, please follow this link.

Step1: Click the “+” in the top-right to create a new file.

Step2:Copy and paste the following code into the new tab

from Adafruit_I2C import Adafruit_I2C
import time
import math

Oled = Adafruit_I2C(0x3c)

grayH= 0xF0
grayL= 0x0F

BasicFont = [[0 for x in xrange(8)] for x in xrange(10)]

def oled_init():
    sendCommand(0xFD) # Unlock OLED driver IC MCU interface from entering command. i.e: Accept commands
    sendCommand(0xAE) # Set display off
    sendCommand(0xA8) # set multiplex ratio
    sendCommand(0x5F) # 96
    sendCommand(0xA1) # set display start line
    sendCommand(0xA2) # set display offset
    sendCommand(0xA0) # set remap
    sendCommand(0xAB) # set vdd internal
    sendCommand(0x81) # set contrasr
    sendCommand(0x53) # 100 nit
    sendCommand(0xB1) # Set Phase Length
    sendCommand(0xB3) # Set Display Clock Divide Ratio/Oscillator Frequency
    sendCommand(0xBC) # set pre_charge voltage/VCOMH
    sendCommand(0x08) # (0x08);
    sendCommand(0xBE) # set VCOMH
    sendCommand(0X07) # (0x07);
    sendCommand(0xB6) # Set second pre-charge period
    sendCommand(0xD5) # enable second precharge and enternal vsl
    sendCommand(0X62) # (0x62);
    sendCommand(0xA4) # Set Normal Display Mode
    sendCommand(0x2E) # Deactivate Scroll
    sendCommand(0xAF) # Switch on display
    # delay(100);

    # Row Address
    sendCommand(0x75)    # Set Row Address 
    sendCommand(0x00)    # Start 0
    sendCommand(0x5f)    # End 95 

    # Column Address
    sendCommand(0x15)    # Set Column Address 
    sendCommand(0x08)    # Start from 8th Column of driver IC. This is 0th Column for OLED 
    sendCommand(0x37)    # End at  (8 + 47)th column. Each Column has 2 pixels(segments)

    # Init gray level for text. Default:Brightest White
    grayH= 0xF0
    grayL= 0x0F

def sendCommand(byte):

def sendData(byte):

def multi_comm(commands):
    for c in commands:

def oled_clearDisplay():
    for j in range (0,48):
        for i in range (0,96):

def oled_setNormalDisplay():

def oled_setVerticalMode():
    sendCommand(0xA0)    # remap to
    sendCommand(0x46)    # Vertical mode

def oled_setTextXY(Row,Column):
    sendCommand(0x15)             # Set Column Address
    sendCommand(0x08+(Column*4))  # Start Column: Start from 8
    sendCommand(0x37)             # End Column
    # Row Address
    sendCommand(0x75)             # Set Row Address
    sendCommand(0x00+(Row*8))     # Start Row
    sendCommand(0x07+(Row*8))     # End Row

def oled_putChar(C):
    if C_add<32 or C_add>127:     # Ignore non-printable ASCII characters
        C=' '

    for i in range(0,8,2):
        for j in range(0,8):
            if bit1:
            if bit2:

def oled_putString(String):
    for i in range(len(String)):

if __name__=="__main__":
    print 'hello world'

Step3: Save the file by clicking the disk icon with with the .py extension.

Step4: Connect Grove - OLED to Grove I2C socket on BBG.

Step5: Run the code. You’ll find that the Grove - OLED outputs “Hello World”.


Help us make it better

Thank you for choosing Seeed. A couple of months ago we initiated a project to improve our documentation system. What you are looking at now is the first edition of the new documentation system. Comparing to the old one, here is the progresses that we made:

  • Replaced the old documentation system with a new one that was developed from Mkdocs, a more widely used and cooler tool to develop documentation system.
  • Integrated the documentation system with our official website, now you can go to Bazaar and other section like Forum and Community more conveniently.
  • Reviewed and rewrote documents for hundreds of products for the system’s first edition, and will continue migrate documents from old wiki to the new one.

An easy-to-use instruction is as important as the product itself. We are expecting this new system will improve your experience when using Seeed’s products. However since this is the first edition, there are still many things need to improve, if you have any suggestions or findings, you are most welcome to submit the amended version as our contributor or give us suggestions in the survey below, Please don’t forget to leave your email address so that we can reply.

Happy hacking