Datasheet
12
4. Reference
Seeed 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 Seeed Gray OLED Library extensible. Seeed Gray OLED
library uses Arduino Wire library. Hence initialize wire library before initializing Seeed OLED library.
Function Description:
1. init()
Initializes the Seeed OLED frame and sets the display to Normal mode.
Example:
SeeedGrayOled.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:
SeeedGrayOled.clearDisplay(); //clear the screen and set start position to top left corner
3. setNormalDisplay()
Configures the display to normal mode(non-inverse) mode.
SeeedGrayOled.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:
SeeedGrayOled.setContrastLevel(127); //Set display contrast ratio to half level( i.e 256/2 -
1 ).
5. setInverseDisplay())
Configures the display to inverse mode.
Example:
SeeedGrayOled.setInverseDisplay(); //Set display to inverse mode
6. setHorizontalMode()
Configures the display to horizontal addressing mode.
Example: