ST7789 display

For general Flowcode discussion that does not belong in the other sections.
jgu1
Posts: 615
http://meble-kuchenne.info.pl
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 509 times
Been thanked: 132 times

Re: ST7789 display

Post by jgu1 »

Hi Martin, yes please, very welcome :D

Jorgen

medelec35
Matrix Staff
Posts: 1464
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 514 times
Been thanked: 474 times

Re: ST7789 display

Post by medelec35 »

Ben & I discussed this yesterday evening.
We know it's not ideal.
After converting the temperature value to a string called TemperatureString for example.
You can use

Code: Select all

TemperatureString = TemperatureString + " \xA7\x43   "
The

Code: Select all

\xA7
generates the

Code: Select all

º
&

Code: Select all

 \x43
generates the

Code: Select all

C

That's if you want it to look like

Code: Select all

ºC
Martin

jgu1
Posts: 615
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 509 times
Been thanked: 132 times

Re: ST7789 display

Post by jgu1 »

Thank you Martin. :D I will make a test. As you see I have made a project using the circle.

Just perform a test on a Ili9341 Only the C is on the screen?

I will not hijack the tread ;)
Attachments
Watch.jpg
Watch.jpg (41.98 KiB) Viewed 2737 times

medelec35
Matrix Staff
Posts: 1464
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 514 times
Been thanked: 474 times

Re: ST7789 display

Post by medelec35 »

That looks great!
It was Ben that came up with the

Code: Select all

\xA7\x43
& I did the testing.
It was a joint effort.
Martin

WingNut
Posts: 254
Joined: Tue Jul 13, 2021 1:53 pm
Has thanked: 33 times
Been thanked: 23 times

Re: ST7789 display

Post by WingNut »

Yeah I cant get it to work

medelec35
Matrix Staff
Posts: 1464
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 514 times
Been thanked: 474 times

Re: ST7789 display

Post by medelec35 »

Hello.
Have you followed the post Sat Mar 05, 2022 5:18 pm?
Have you also completed a Full database update?
Martin

WingNut
Posts: 254
Joined: Tue Jul 13, 2021 1:53 pm
Has thanked: 33 times
Been thanked: 23 times

Re: ST7789 display

Post by WingNut »

Apologies I didn't read all of the thread - works a treat. Basically the hex value of the characters.

Thanks

jollybv
Posts: 125
Joined: Mon Mar 08, 2021 11:25 am
Location: Cape Town South Africa
Has thanked: 40 times
Been thanked: 11 times

Re: ST7789 display

Post by jollybv »

Hi guys

I have tried this but no luck have dun full update and everything not sure what I,m doing wrong

Degree symbole.PNG
Degree symbole.PNG (12.45 KiB) Viewed 2708 times
screen.PNG
screen.PNG (154.44 KiB) Viewed 2708 times

medelec35
Matrix Staff
Posts: 1464
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 514 times
Been thanked: 474 times

Re: ST7789 display

Post by medelec35 »

Hi Brian.
Have you tried with the default or system font?
They are the only fonts that currently have the degrees symbol.
Martin

BenR
Matrix Staff
Posts: 1756
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 446 times
Been thanked: 606 times

Re: ST7789 display

Post by BenR »

If you need another font supporting then let us know which font you're using and we can draw up the pixel artwork for the character.

Post Reply