Degree shown in DOT-MAtrix 7219

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
bison00
New user
Posts: 8
Joined: 26 May 2021, 21:05

Degree shown in DOT-MAtrix 7219

#1 Post by bison00 » 24 Apr 2024, 20:12

Hi,

I search for a Solution to add °C to my scrolling Text on a 8x8 7219 Dot Matrix. I will use this in regular Rules Programm.

I try a lot of different Phrase but nothing works.

This is an example:

DotMatrix,settxt,1,'Pool: [Sens#Temp]&deg'

Can anyone help me?

regards Bison

User avatar
Ath
Normal user
Posts: 3647
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Degree shown in DOT-MAtrix 7219

#2 Post by Ath » 24 Apr 2024, 20:27

Of the available fonts, only the Extended ASCII font supports the degree symbol. Depending on the build you're using, this font may or may not be included, you can check that in the Font dropdown list.
The font overview shows what ASCII character to use for making it visible.
/Ton (PayPal.me)

bison00
New user
Posts: 8
Joined: 26 May 2021, 21:05

Re: Degree shown in DOT-MAtrix 7219

#3 Post by bison00 » 24 Apr 2024, 20:42

Hi,

I activate the extend ASCII 2 with this command

DotMatrix,font,1,4
DotMatrix,settxt,1,'Pool: [Sens#TEmp].&degC'
DotMatrix,pause,1,10000

User avatar
Ath
Normal user
Posts: 3647
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Degree shown in DOT-MAtrix 7219

#4 Post by Ath » 24 Apr 2024, 21:00

Well, "&deg" is not the way to get that degree symbol shown, you should put the ASCII character 186 there: º
Possibly using {D} could work, don't have a display at hand to test, ATM.
/Ton (PayPal.me)

bison00
New user
Posts: 8
Joined: 26 May 2021, 21:05

Re: Degree shown in DOT-MAtrix 7219

#5 Post by bison00 » 24 Apr 2024, 21:02

How can I do this in Rules?

User avatar
Ath
Normal user
Posts: 3647
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Degree shown in DOT-MAtrix 7219

#6 Post by Ath » 24 Apr 2024, 21:03

bison00 wrote: 24 Apr 2024, 21:02 How can I do this in Rules?

Code: Select all

DotMatrix,settxt,1,'Pool: [Sens#TEmp]{D}C'
/Ton (PayPal.me)

bison00
New user
Posts: 8
Joined: 26 May 2021, 21:05

Re: Degree shown in DOT-MAtrix 7219

#7 Post by bison00 » 24 Apr 2024, 21:30

when I use

Code: Select all

DotMatrix,settxt,1,'Pool: [Sens#TEmp]{D}C'
it show me the ImageImage


I don't know what to do

reagards. Bison
Attachments
Bildschirmfoto 2024-04-24 um 21.25.49.png
Bildschirmfoto 2024-04-24 um 21.25.49.png (6.17 KiB) Viewed 695 times
Bildschirmfoto 2024-04-24 um 21.25.15.png
Bildschirmfoto 2024-04-24 um 21.25.15.png (6.89 KiB) Viewed 695 times

User avatar
Ath
Normal user
Posts: 3647
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Degree shown in DOT-MAtrix 7219

#8 Post by Ath » 24 Apr 2024, 21:34

Then try:

Code: Select all

DotMatrix,settxt,1,'Pool: [Sens#TEmp]║C'
/Ton (PayPal.me)

bison00
New user
Posts: 8
Joined: 26 May 2021, 21:05

Re: Degree shown in DOT-MAtrix 7219

#9 Post by bison00 » 24 Apr 2024, 22:03

Hi,

for today is enough I go to bed!

No Solution.

Good Night an Thanks

User avatar
Ath
Normal user
Posts: 3647
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Degree shown in DOT-MAtrix 7219

#10 Post by Ath » 22 May 2024, 23:03

@bison00 I did some digging into the library code, and in the default font, despite what's listed in the documentation, the degree symbol is at ascii character 176, so if you use that '░' as a literal character in your rules, you should get the degree displayed (untested, matching hardware is temporarily stored away).
/Ton (PayPal.me)

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 0 guests