-
I'm really new with u8g2. I initialized the u8g2 lib with u8g2_Setup_ssd1306_i2c_128x64_noname_f(...); The library seems to work fine! Using the arduino example from The line (325) u8g2_DrawStr(&u8g2, 0, 12,"UpdateDisplayArea"); leaves space at the top of the display. The string is y shifted downwards. I changed it to But this is contrary to the FAQ?
Same example next problem: The "u8g2" String will be drawn into the buffer by Line 345 The string 'u8g2' is clearly shifted downwards in the frame. I have fixed the y shift by subtracting '16'. Now it looks perfect. Can someone explain the y shifting? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Maybe https://github.com/olikraus/u8g2/wiki/u8g2reference#setfontpostop is active. The documentation usually assumes https://github.com/olikraus/u8g2/wiki/u8g2reference#setfontposbaseline |
Beta Was this translation helpful? Give feedback.
Maybe https://github.com/olikraus/u8g2/wiki/u8g2reference#setfontpostop is active. The documentation usually assumes https://github.com/olikraus/u8g2/wiki/u8g2reference#setfontposbaseline