Add more text lines to Grove - OLED Display 1.12'' V2

How can I add more text lines to this script? and us it necessary to use it in a do-while loop?

Code:

#include <Arduino.h>
#include <U8g2lib.h>
#include <SPI.h>
#include <Wire.h>

U8G2_SH1107_SEEED_128X128_1_SW_I2C u8g2(U8G2_R0, /* clock=/ SCL, / data=/ SDA, / reset=*/ U8X8_PIN_NONE);

void setup(void) {
u8g2.begin();
}

void loop(void) {
u8g2.firstPage();
do {
u8g2.setFont(u8g2_font_ncenB10_tr);
u8g2.drawStr(0,24,“Hello World!”);
} while ( u8g2.nextPage() );
}

Hi there! Thanks for waiting!

Yes, you can add more text lines in a do-while loop or outsides according to your specific needs. And you’re also recommended visiting U8G2 Library for more usage examples and further information.

Don’t hesitate to contact us if you need any help. Thanks.