Datasheet

7
Hello World on Normal Display
3.1.3 Demo 3: Print Numbers
#include <Wire.h>
#include <SeeedGrayOLED.h>
void setup()
{
Wire.begin();
SeeedGrayOled.init(); //initialize SEEED Gray OLED display
SeeedGrayOled.clearDisplay(); //clear the screen and set start position to top left corner
SeeedGrayOled.setNormalDisplay(); //Set display to Normal mode
SeeedGrayOled.setVerticalMode(); // Set to vertical mode for displaying text
SeeedGrayOled.setTextXY(0,0); //Set the cursor to 0th line, 0th Column
SeeedGrayOled.putNumber(123); //Print number
SeeedGrayOled.setTextXY(1,0); //Set the cursor to 1st line, 0th Column
SeeedGrayOled.putNumber(0xFFFF); //Print number