Hi Bill,

Good to know.

About the fonts. The two fonts you mentioned are vertical oriented fonts like 
the display. The larger fonts are most likely horizontal fonts for which extra 
code is in the library to rotate this but it needs a character buffer for that.

If you want to use the larger fonts you have to increase that character buffer 
as described in the library, see info below. In the SSD1306 I made this 
character buffer as large as was needed for the biggest fonts we currently have 
but if you do not use such a big font, it is waste of data space. In the SH1106 
library I have set this buffer to the minimum of 1 so for each horizontal font 
you use (which are the larger fonts) you have to increase this size. I also 
changed this for the SSD1306 library - so that you know - but I did not upload 
that since I first want to see what comes out of testing the SH1106 library,


-- When using a horizontal oriented character font, a character buffer
-- is needed with the size of the used font, see the font library value
-- FONT_xxxx_BYTE_PER_CHAR for the font you are using.
-- The default size of this buffer is set to the minimum value of 1.
-- For example the 12x16 horizontal font uses 32 bytes for one character
-- and so we can set the character buffer to this size by:
-- -) const SH1106_CHAR_BUFFER_SIZE = 32
-- No buffer is required for vertical oriented fonts. For vertical fonts
-- only fonts with a maximum height of 8 pixels are supported.

Kind regards,

Rob



________________________________
Van: [email protected] <[email protected]> namens Bill Beek 
<[email protected]>
Verzonden: woensdag 21 januari 2026 20:25
Aan: jallib <[email protected]>
Onderwerp: Re: [jallib] Re: Update SSD1306 library supporting bigger font


Hello Rob,

It seems that the memory is not completely erased by the clear_screen procedure.

I made a work around that overwriting all 8 lines of text with spaces,

so that the unwanted pixels disappear.

Furthermore, I saw that only the 5x7 and the 6x8 fonts works, the larger one 
doesn't.

It's hard not to be able to test with the right display, so for now I'm waiting 
to see

what you can discover.

Kind regards, Bill.


On Tuesday, January 20, 2026 at 6:47:41 PM UTC+1 Rob CJ wrote:
Hi Bill,

Thanks for the info. I expect the LCD's to arrive soon so I can test it myself.

Strange all those random pixels (I assume after clear display. It may be that 
the shift 1 pixel to the left may be caused by the fact that this controller 
support 132x64 while the SSD1306 supports 128x64 and I still used 128x64 in 
this library but I will test that too. I head something similar from Rob 
Hamerling to add an offset.

I noticed when testing the SSD1306 library that some scrolling funtionality 
only worked for the version with SPI and not IIC. I do not know why that is.

As soon as I get it all working I will send you an update.

Kind regards,

Rob



________________________________
Van: [email protected] <[email protected]> namens Bill Beek 
<[email protected]>
Verzonden: dinsdag 20 januari 2026 16:37

Aan: jallib <[email protected]>
Onderwerp: Re: [jallib] Re: Update SSD1306 library supporting bigger font
I meant Horizontal and diagonal scrolling.


On Tuesday, January 20, 2026 at 4:33:27 PM UTC+1 Bill Beek wrote:

Hi Rob,

You're on the right track, that addressing also gave me some problems to figure 
out.

I'll send some pictures so you can see what's happening on the display.

The "8" at the bottom left has been moved 1 position so that the full character 
is visible.

 That is not a big problem. Only the vertical scrolling functions work, the 
horizontal and

vertical ones don't.

And of course the unwanted pixels are the problem as far as I've been able to 
discover,

as you can see in the pictures.

Kind regards, Bill.


On Monday, January 19, 2026 at 6:58:17 PM UTC+1 Rob CJ wrote:
Hi Bill,

I had a detailed look at the datasheet of the SH1106 and saw that setting the 
device on a certain position works differently so I changed that. This way of 
positioning the device uses a page addressing mode. This mode is also available 
in the SSD1306 but there the library uses horizontal addressing mode and so a 
different method is used. You can also select the page addressing mode on the 
SSD1306 and then the same approach is used as in the SH1106.

Not sure if this solves all problems but this version will not work on the 
SSD1306 since the command to select the addressing mode is not present in the 
SH1106 so I removed that command in total to prevent any side effects. In the 
future it might be possible to make one library for both (maybe with a 
'define') but maybe it is better to keep them separate otherwise the library 
name should change to glcd_ssd1306_sh1106.

If this does not work then you have to wait until I can test it myself.

Kind regards,

Rob



________________________________
Van: [email protected] <[email protected]> namens Rob CJ 
<[email protected]>
Verzonden: zondag 18 januari 2026 16:28
Aan: [email protected] <[email protected]>

Onderwerp: Re: [jallib] Re: Update SSD1306 library supporting bigger font
Hi Bill,

OK. These where settings that supposed to work for both. I will do some more 
research and will test it first myself before sending an update.

Kind regards,

Rob

________________________________
Van: [email protected] <[email protected]> namens Bill Beek 
<[email protected]>
Verzonden: zondag 18 januari 2026 16:15
Aan: jallib <[email protected]>
Onderwerp: Re: [jallib] Re: Update SSD1306 library supporting bigger font

The latest lib make it worst, both displays are now up side down.
And the 1306 is now messy and the 1106 behavior is further unchanged.
Kind regards, Bill.
On Sunday, January 18, 2026 at 3:45:30 PM UTC+1 Bill Beek wrote:
Hi Rob,
Only for the video together, when used
separately the same results on the display




On Sunday, January 18, 2026 at 3:21:23 PM UTC+1 Rob CJ wrote:
Hi Bill,

Are you using both at the same time on the same IIC bus with the same IIC 
address? That may give problems.

I updated the library and used other initialization settings that I received 
from the other Rob. They should work both for the ssd1306 as well as for the 
sh1106.

Kind regards,

Rob

________________________________
Van: [email protected] <[email protected]> namens Bill Beek 
<[email protected]>
Verzonden: zondag 18 januari 2026 12:41

Aan: jallib <[email protected]>
Onderwerp: Re: [jallib] Re: Update SSD1306 library supporting bigger font

my mistake



--
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/jallib/c6d86474-5d12-4826-b55a-a4c2d74f2e69n%40googlegroups.com<https://groups.google.com/d/msgid/jallib/c6d86474-5d12-4826-b55a-a4c2d74f2e69n%40googlegroups.com?utm_medium=email&utm_source=footer>.

--
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/jallib/8e75facb-27fd-4700-89f4-592250bc2e2an%40googlegroups.com<https://groups.google.com/d/msgid/jallib/8e75facb-27fd-4700-89f4-592250bc2e2an%40googlegroups.com?utm_medium=email&utm_source=footer>.

--
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/jallib/AM6PR02MB4053C37C61C5EC28C09619D8E68BA%40AM6PR02MB4053.eurprd02.prod.outlook.com<https://groups.google.com/d/msgid/jallib/AM6PR02MB4053C37C61C5EC28C09619D8E68BA%40AM6PR02MB4053.eurprd02.prod.outlook.com?utm_medium=email&utm_source=footer>.

--
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/jallib/ae6bfd7c-b7d3-47ca-8dc8-b3fab5174eddn%40googlegroups.com<https://groups.google.com/d/msgid/jallib/ae6bfd7c-b7d3-47ca-8dc8-b3fab5174eddn%40googlegroups.com?utm_medium=email&utm_source=footer>.

--
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
[email protected]<mailto:[email protected]>.
To view this discussion visit 
https://groups.google.com/d/msgid/jallib/ca4c4c8b-c505-409e-bd4f-de6cae878986n%40googlegroups.com<https://groups.google.com/d/msgid/jallib/ca4c4c8b-c505-409e-bd4f-de6cae878986n%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/jallib/AM0PR02MB4052E9D0E13610BF7DB3A8A6E697A%40AM0PR02MB4052.eurprd02.prod.outlook.com.

Reply via email to