Possible use example for printing centered:
char text[] {"Hello World"};
int width = disp.getPrintedWidth(text); //or getFontWidth?
disp.print((disp.width / 2) - (width / 2), disp.height / 2, text);
Possible use example for printing centered:
char text[] {"Hello World"};
int width = disp.getPrintedWidth(text); //or getFontWidth?
disp.print((disp.width / 2) - (width / 2), disp.height / 2, text);