u8g2 icon indicating copy to clipboard operation
u8g2 copied to clipboard

eastRising 64x48 Oled

Open monoplex opened this issue 1 year ago • 1 comments

I'm having problems with the eastRising 64x48 I2C Oled. The constructor used is U8G2_SSD1306_64X48_ER_F_HW_I2C u8g2(U8G2_R0).

The issue appears to be that the screen output is offset. I have been looking through the U8g2 library code where I might find some offset parameters to reposition Oled RAM onto the display.

I have a working Oled from a different manufacturer and the test code correctly displays as shown.

Image

With the same constructor and test code, on the eastRising display I get:

Image

For reference, as it may be useful, I also used a 128x64 display with the constructor U8G2_SSD1306_128X64_NONAME_F_HW_I2C u8g2(U8G2_R0, RESET) and running the same test code get:

Image

I hope I haven't been stupid and missed something obvious.

Thanks

monoplex avatar Apr 15 '25 05:04 monoplex

You can adjust the x-offset here: https://github.com/olikraus/u8g2/blob/82efd57daea8593d36194940f53fb7e518390276/csrc/u8x8_d_ssd1306_64x48.c#L190

For the y offset try this: u8g2.sendF("c", 0x040 + y); where y is the offset value.

olikraus avatar Apr 15 '25 20:04 olikraus