Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

default_x_offset on sh1106 #2592

Open
Coding-Kiwi opened this issue Feb 13, 2025 · 0 comments
Open

default_x_offset on sh1106 #2592

Coding-Kiwi opened this issue Feb 13, 2025 · 0 comments

Comments

@Coding-Kiwi
Copy link

Hi,

thanks for the awesome library.
I got one of these https://www.az-delivery.de/products/1-3zoll-i2c-oled-display

and I am using the U8G2_SH1106_128X64_NONAME_F_HW_I2C constructor.

U8G2_SH1106_128X64_NONAME_F_HW_I2C u8g2(
    /* rotation=*/U8G2_R0,
    /* reset=*/U8X8_PIN_NONE,
    /* clock=*/DISPLAY_CLOCK,
    /* data=*/DISPLAY_DATA);

u8g2.begin();
u8g2.clearBuffer();
u8g2.drawFrame(0, 0, 128, 64);
u8g2.sendBuffer();

sadly the left two pixels are cut off / behave weirdly

width 128 draws one pixel at x 0 y 10-ish? and a double line at x 1 and x 2
width 127 draws a full line at x 0 , a blank at x 1 and a full at x 2

the only way I could fix this is by setting default_x_offset of u8x8_sh1106_128x64_noname_display_info from 2 to 0 in the u8x8_d_ssd1306_128x64_noname.c file

maybe you can give me a hint.. is there any way to do this in my code instead of modifying stuff inside the library folder?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant