Hallo,
I found that chr(158) is used to call second custom character, if I understand it correctly, so if for example I need to display word "kožka" then it will show "ko"full box"ka" . I have built my own hardware and I payed attention to put together font containing full ascii table to be able to display all weird characters used in some (and also my) countries, so I am pretty sure, that hardware is handling chr 158 correctly, but it just not work with "ž".
Is there any way to remap that full box used in bars to any other ascii character? There are plenty of useless characters, so why "ž"? Thank you.
EDIT: Oh, I have forgot to mention, that I am using matrix.dll plugin.
Our new official repo is on github
LCD Smartie version 5.6 is released!
Download it now: https://github.com/LCD-Smartie/LCDSmartie/releases
LCD Smartie version 5.6 is released!
Download it now: https://github.com/LCD-Smartie/LCDSmartie/releases
use of character "ž" (158)
Moderators: _X7JAY7X_, caesar, IFR, mattcro, limbo, Fast351
-
- Posts: 4
- Joined: December 19th, 2011, 10:26 am
- Location: Slovakia
-
- Plugin Author
- Posts: 1604
- Joined: February 13th, 2005, 7:38 pm
- Location: Athens - Greece
- Contact:
Re: use of character "ž" (158)
I'm not sure that I'm getting the point of your post (sorry) but FYI search and replace plugin can help you to have some automated replacement in characters. Regarding the supported custom characters: Most of market modules supporting only 8 custom characters. This means that you can only specify only 8 characters per screen*, Only if you have the hardware manual you can see the complete character table that your hardware supports.
*Custom characters can be re-assigned on each screen. However you can't use the same character placeholder with two different characters in the same screen. For more read this http://forums.lcdsmartie.org/viewtopic.php?p=1079#p1079
*Custom characters can be re-assigned on each screen. However you can't use the same character placeholder with two different characters in the same screen. For more read this http://forums.lcdsmartie.org/viewtopic.php?p=1079#p1079
-
- Posts: 4
- Joined: December 19th, 2011, 10:26 am
- Location: Slovakia
Re: use of character "ž" (158)
I'm sorry, my fault, I didn't write my post clearly enough as I am reading it now, so I will try it again.
When I'm using $Bar function, it uses black boxes, that are defined as a custom character. And that custom character is called by $Chr(158) command. This means, if I'm understanding it correctly that ASCII character 158 is linked to second custom character. And 158 is "ž" in ASCII, that's the problem. If I uncheck "Emulate LCD (more CPU intensive)" in LCD Smartie setup, than I can see the $Bar on virtual LCD as žžžžžž,,_______ for example. So if I use "ž" somewhere in screen (word containing "ž") than it will display full box from bar and I have not found a way, how to display "ž" instead of full box and also have $Bar function working correctly. So I can not call ASCII char 158 to print "ž" on LCD instead of second custom character.
Custom characters on HD44780 chips are mapped on ASCII 0-7 characters and these are not "printable" and are used on serial port as communication commands, so I believe, that there are some reason, why in LCD Smartie custom chars are mapped to 176, 158, 131 and so (which must be translated to 0-7 internally before sending anyway), but it means, that it's not possible to use ASCII characters which codes are occupied by custom characters call codes in LCD Smartie. Is there any way to overcome this? Thank you a lot for your time.
When I'm using $Bar function, it uses black boxes, that are defined as a custom character. And that custom character is called by $Chr(158) command. This means, if I'm understanding it correctly that ASCII character 158 is linked to second custom character. And 158 is "ž" in ASCII, that's the problem. If I uncheck "Emulate LCD (more CPU intensive)" in LCD Smartie setup, than I can see the $Bar on virtual LCD as žžžžžž,,_______ for example. So if I use "ž" somewhere in screen (word containing "ž") than it will display full box from bar and I have not found a way, how to display "ž" instead of full box and also have $Bar function working correctly. So I can not call ASCII char 158 to print "ž" on LCD instead of second custom character.
Custom characters on HD44780 chips are mapped on ASCII 0-7 characters and these are not "printable" and are used on serial port as communication commands, so I believe, that there are some reason, why in LCD Smartie custom chars are mapped to 176, 158, 131 and so (which must be translated to 0-7 internally before sending anyway), but it means, that it's not possible to use ASCII characters which codes are occupied by custom characters call codes in LCD Smartie. Is there any way to overcome this? Thank you a lot for your time.