OLED hi res numbers

Hi,
I am making a thermostat, and while it is almost finish.
I feel like the numbers shown are kind of low quality, does someone knows how can i make them to higher resolutions?

Thanks

You need to upload some new fonts.

@peekay123 Has a library that can help you with this.

2 Likes

Hi @peekay123 ,
Do you know how can i use hi-res fonts for the adafruit library?
Thanks

For now checkout this Modified GFX library with extra fonts and the ability to upload your own fonts.

2 Likes

For really big fonts, especially numbers for clocks and thermometers, I have found that taking a screen shot of the font in a word processing app on the desktop and cleaning it up and separating the characters in a desktop paint app works well. You just have encode the graphic file back into C/C++ arrays, for which Digiole displays have an online utility but there are quite a few others.

Here is an example of the digit “3” in a 48pt font encoded for a Waveshare eink display with packed 8-bit black-and-white:

// 31 x 47
const uint8_t Three[] = {
0x00,0x00,0x00,0x00
,0x00,0x3f,0xe0,0x00
,0x00,0xff,0xfc,0x00
,0x03,0xe0,0x3e,0x00
,0x07,0x80,0x1f,0x80
,0x0e,0x00,0x0f,0x80
,0x0e,0x00,0x07,0xc0
,0x1e,0x00,0x07,0xe0
,0x1f,0x00,0x03,0xe0
,0x1f,0x80,0x03,0xe0
,0x1f,0x80,0x03,0xf0
,0x1f,0xc0,0x03,0xf0
,0x1f,0x80,0x03,0xf0
,0x1f,0x80,0x03,0xf0
,0x07,0x00,0x03,0xe0
,0x00,0x00,0x03,0xe0
,0x00,0x00,0x07,0xc0
,0x00,0x00,0x07,0xc0
,0x00,0x00,0x0f,0x80
,0x00,0x00,0x1f,0x00
,0x00,0x00,0x7c,0x00
,0x00,0x7f,0xf0,0x00
,0x00,0x7f,0xfc,0x00
,0x00,0x00,0x3f,0x00
,0x00,0x00,0x0f,0x80
,0x00,0x00,0x07,0xc0
,0x00,0x00,0x03,0xe0
,0x00,0x00,0x03,0xf0
,0x00,0x00,0x01,0xf0
,0x00,0x00,0x01,0xf8
,0x00,0x00,0x01,0xf8
,0x1e,0x00,0x01,0xf8
,0x3f,0x00,0x01,0xf8
,0x3f,0x80,0x01,0xfc
,0x7f,0x80,0x01,0xf8
,0x7f,0x80,0x01,0xf8
,0x7f,0x00,0x01,0xf8
,0x7e,0x00,0x01,0xf8
,0x7c,0x00,0x01,0xf0
,0x38,0x00,0x03,0xf0
,0x38,0x00,0x07,0xe0
,0x1c,0x00,0x07,0xc0
,0x0e,0x00,0x0f,0x80
,0x07,0x80,0x7f,0x00
,0x01,0xff,0xfc,0x00
,0x00,0x3f,0xe0,0x00
,0x00,0x00,0x00,0x00
};
4 Likes

Just to be clear, @bko’s approach does not create an Adafruit_mfGFX font. Instead it creates a bitmap which easily be displayed. @RWB created large fonts for mfGFX so he may have some good insights here.

2 Likes

Where is that PDF you created showing how to create font Bitmap Arrays?

@RWB, not sure how it is not in the repo! I just added it back.

https://github.com/pkourany/Adafruit_mfGFX_IDE/blob/master/README.pdf

2 Likes

@Intike just follow that guide he just added to learn how to use any font you can find and use on a windows computer. I’ve done it successfuly many times.

2 Likes

Thanks, i will try it