How to draw degC symbol on E-paper?

Hi all,
I would like to write correctly the symbol for degree Centigrade on my E-paper display.
I am using the GxEPD2_3C library, and using an ESP32.

There is no char code for this in the library.
So I was thinking of drawing a small circle.
Unfortunately I do not know how to do that.

Any help please?
Thank you

The ASCII code for the degrees symbol is 248 in decimal and F8 in hex.
You could cast the integer value to a character and see if that will display.

char deg_symb = 248;
1 Like

Thank your for your replay.
It does not work, that's because there is no such symbol in the font library.
The solution would be to draw a circle, but I cannot find how to do it.
Regards.

find the font definition and edit some symbol you don't use

1 Like

Hi and thank you.
Do you a tool I can use to make a new symbol for E-paper?
Regards

Maybe you could take a look at GxEPD2_U8G2_Fonts_Example.

// GxEPD2_U8G2_Fonts_Example : show use of U8G2_FOR_ADAFRUIT_GFX with GxEPD2
//
// Library: https://github.com/olikraus/U8g2_for_Adafruit_GFX
// see: https://github.com/olikraus/U8g2_for_Adafruit_GFX/blob/master/README.md

U8G2_FOR_ADAFRUIT_GFX has many fonts and symbols, as it uses Unicode.

Jean-Marc

Yes, pencil and paper and text editor.

Hi all,
I had no luck in finding the my symbol ( the degree centigrade).
So i took a pragmatic approach and used the lower case 'o' and a small font.
I then set the set the screen location to raise the 'o' and the problem is solved.

You don't have to find it. You can make it. All the fonts are in font definition files that are included with the library. You can modify them to your heart's content. But if you have a solution that gets you through the night, okay...

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.