Can any body assist me please.
I am using the above library to display an int number on a single line.
Scrolling is not enabled.
The display has 128 X 32 pixels and the font is 16 wide by 24 pixels high.
The library works brilliantly, it is very efficient and and meets my text only needs superbly but I'm struggling in one area.
Currently my 24 high digits are displaying at the top of the display ie at top left with the 0,0 origin. I would like to drop the displayed line by 4 pixels to centre the line in a window.
Can anybody give me any guidance how to do this please?
Thanks in anticipation
Regards
I don't know which library is which but I found the cursor placement varied with the font size, and maybe you are having a similar problem.
Getting something useful from the SSD1306 OLED - Displays - Arduino Forum 128x64
Thanks Nick
We are both using the same library. Your example using small fonts looks to show that each line is the font height plus a tad below the previous one. As you said it is when using large fonts that the problem arise. My font is 24 high and the screen is only 32 deep so I need to address each vertical pixel rather than a line. I have tried changing the SETSTARTLINE in SSD1306init.h from 0 to 4 but this failed to compile.
I'll keep trying and get back when successful.
Regards
I just thought I would give you an update. I couldn't find a way to shift the start of the line down by three pixels so after some playing I created a very simple new font three bits high and only having a single character equal to space. I set this font then
Println a single space and then set the 24 high font which now prints three pixels lower on the screen. Not pretty but it's working
Regards