Datasheet
13
SeeedGrayOled.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:
SeeedGrayOled.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:
SeeedGrayOled.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:
SeeedGrayOled.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:
SeeedGrayOled.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:
SeeedGrayOled.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