128x64 OLED SSD1306 LCD flashing issue

Hi Guys,

I have been trying u8glib library for 128x64 OLED screen (I2C Mode).

I have been parsing string to charArray for this method for simplicity only

u8g.drawStr( 0, 40, parseString(s) );
// u8g.drawStr( 0, 40, “Hello World” );

But when I run my screen start to flash with “Hello World” printed in it. And sometime it get haywire also :grinning:

Whereas another test case, when I tried with hard code “Hello World” It works perfect, no flashing.

Why, I am confused?

PS: Tried with this constructor ON

U8GLIB_SSD1306_128X64 u8g(U8G_I2C_OPT_NONE|U8G_I2C_OPT_DEV_0); // I2C / TWI

sketch_mar20a.ino (13.2 KB)