SSD1306 0.96 inch OLED, reduce burn in.

Hi,
is there any techniques to reduce burnin on an OLED SSD1306 0.96 inch?

thanks

Since we are dealing with OLEDS with ON and OFF pixels, oe solution could be to program a timer to set all pixels to OFF after a certain time until a button is pressed or some activity is measured /data received

another way could be to invoke the 'sleep' function in u8glib:
void U8GLIB::sleepOn(void)
void U8GLIB::sleepOff(void)

see userreference · olikraus/u8glib Wiki · GitHub

Two things you can do with that display: 1) set the contrast level to 1 (0 will turn it off) and 2) set the Vcomh level to a lower value. Both will have the effect of dimming the display.

MK1888:
Two things you can do with that display: 1) set the contrast level to 1 (0 will turn it off) and 2) set the Vcomh level to a lower value. Both will have the effect of dimming the display.

Is this possible with the adafruit's library?

What's the name of the library?

If it's the "Adafruit_SSD1306" library, you can call:

ssd1306_command(SSD1306_SETCONTRAST);
ssd1306_command(value);

where value is uint8_t.

For Vcomh:

ssd1306_command(SSD1306_SETVCOMDETECT);
ssd1306_command(value);

where value is value is 0x00, 0x10, 0x20, 0x30, or 0x40...or some other value? I actually have no idea what this is, but I accidentally found it and noticed that the higher the value the brighter the display. The Adafruit library, and others, are setting the value to 0x40. The datasheet says that the default is 0x20. I noticed that it was dimmer when I set it to 0x20.

Looks like the comments of this video has useful information:

SSD1306 OLED brightness and dimming to (very) low levels