Our new official repo is on github
LCD Smartie version 5.6 is released!
Download it now: https://github.com/LCD-Smartie/LCDSmartie/releases

How do I insert a hex value?

General discussion about LCD Smartie.

Moderators: _X7JAY7X_, caesar, IFR, mattcro, limbo, Fast351

Post Reply
grantb3
Posts: 50
Joined: February 10th, 2008, 4:27 pm

How do I insert a hex value?

Post by grantb3 »

I have an LCD that has a DegC character built in at position 0x06 in the character font. How do I format the string for LCD Smartie?

$Tempname1:$Fill(12)$Temp1 C is what I am doing now, but I want something like:

$Tempname1:$Fill(12)$Temp1 $06
$Tempname1:$Fill(12)$Temp1 #06
$Tempname1:$Fill(12)$Temp1 0x06

Nothing works...
grantb3
Posts: 50
Joined: February 10th, 2008, 4:27 pm

Post by grantb3 »

I figured out I could do it by using a hex edit to create the char, which looks like garbage on the PC, but it's OK on the device:

$Tempname1:$Fill(12)$Temp1

That last character (if you can see it) is 06h. It's not a [
mattcro
Forum Supporter
Posts: 590
Joined: March 8th, 2006, 1:58 pm
Location: Scotland

Post by mattcro »

You should be able to use $Chr(6) to get the character at 0x06 in the character map.

You might also find a degree symbol at $Chr(223) [0xDF in the character map] - this is the degree symbol on some LCD modules.

LCD Smartie offers a degree symbol on the Misc tab at the left of the config window, but that works using a custom character.
grantb3
Posts: 50
Joined: February 10th, 2008, 4:27 pm

Post by grantb3 »

Ok, thanks. I will try that later. $Chr(6) is more attractive than █
Post Reply