change text-orientation on OLED display

Hi Seeedstudio,

I using the Grove – OLED Display 1.12” V2.

I want to change the orientation of the text that is printed to display.

I have tried the “SeeedGrayOled.setVerticalMode();” and “SeeedGrayOled.setHorizontalMode();” commands but I do not understand what they do. What do these functions do?

Unfortunately they do not change the text orientation ?

  • How do I change the orientation of the text printed to the display? See image below.

Hi Bill,

Thank you for contacting me. I realized now that the “SeeedGrayOled.setVerticalMode();” and “SeeedGrayOled.setHorizontalMode();” functions only control from what direction the display is updated.

  • What I need to know if there is a function for changing the text orientation?
  • There is none included in the SeeedOLED-library but it must be a function somewhere on internet that works with the Grove – OLED display V2, but I was not able to find it?


Hi Oliver,

you can use the u8g2 libray, configure the U8G2_R1 .

U8G2_SSD1327_SEEED_96X96_1_HW_I2C u8g2(U8G2_R1, /* reset=*/ U8X8_PIN_NONE);


The software emulated display rotation is the first argument of the constructor.

Rotation/Mirror Description
U8G2_R0 No rotation, landscape
U8G2_R1 90 degree clockwise rotation
U8G2_R2 180 degree clockwise rotation
U8G2_R3 270 degree clockwise rotation
U8G2_MIRROR No rotation, landscape, display content is mirrored (v2.6.x)


/* Constructor */
U8G2_SSD1327_SEEED_96X96_1_HW_I2C u8g2(U8G2_R1, /* reset=*/ U8X8_PIN_NONE);
/* u8g2.begin() is required and will sent the setup/init sequence to the display */
void setup(void) {

/* draw something on the display with the `firstPage()`/`nextPage()` loop*/
void loop(void) {
do {
u8g2.drawStr(0,20,"Hello World!");
} while ( u8g2.nextPage() );


best rgds