Closed patrickwasp closed 6 months ago
Each display has a different setup. The u8g2 originally was written for a different display. The above mentioned Adafruit display is described here: https://cdn-shop.adafruit.com/product-files/4650/4650_C14586.pdf On page 17, the value for the related command 0xd5 is 0x41, however u8g2 will use 0x51 instead: https://github.com/olikraus/u8g2/blob/c4f9cd9f8717661c46be16bfbcb0017d785db3c1/csrc/u8x8_d_sh1107.c#L258
You could try to send the modified value with the sendF command (after u8g2.begin()):
u8g2.sendF("ca", 0xd5, 0x41);
See the u8g2 sendF command and the sh1107 controller datasheet for more details, but maybe 0x31 instead of 0x41 may improve this even more.
Hi,
I'm encountering a strange issue with my Adafruit 128x64 monochrome OLED screen. After writing to it once during the setup, I've noticed it flickers, even though I'm not continuously updating the content. Has anyone experienced something similar or knows what might be causing this?
It looks solid when looking at it with my eyes but it still causes discomfort. It's subtle flickering, something like I've seen with low-frequency PWM in the past.
https://github.com/olikraus/u8glib/assets/70671760/53478162-81d2-4a9c-a054-62886fe50371
A similar sketch using Adafruit libraries refreshes the screen faster, fast enough for me not to be bothered by this.