LCDInfo.com

http://www.lcdinfo.com
It is currently Sat Dec 21, 2024 17:10

All times are UTC + 2 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Wed Feb 16, 2005 22:51 
Offline

Joined: Tue Jan 25, 2005 17:11
Posts: 11
Hi,

I have been playing with this idea on Custom character that also can be used to replace characters with your own.

(based on 5x7 characters and pixel draw)
To figure out how we want to get a 'ä' (Extended acsii code 132) on the display we can use this template :

oxoxo
ooooo
oxxxo
oooox
oxxxx
xooox
oxxxx

Now to calc the values we are going fra left to rigth and doing some binary
so 00000X0 = 0000010 eq. 0x20 etc etc until we are done.

1 = 0x20
2 = 0x55
3 = 0x54
4 = 0x55
5 = 0x78

as for the config i wanted to use :

<item type="custom_char" id="132">
<data>0x20, 0x55, 0x54, 0x55, 0x78</data>
</item>

where ID is based on the ascii code of the character witch we want to draw or replace as for the code part its only matter
of parseing the string to be written and match it to custom character id and at last do some pixel draw based on data string.

What do you think about this?

Regards
Michael.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 17, 2005 3:13 
Offline
User avatar

Joined: Fri Dec 03, 2004 7:03
Posts: 201
Location: Sydney, Australia
The idea is great. :) I like it heaps.

From what I understand though you are suggesting a custom character on the fly? So what you want (tell me if I'm wrong) is for the LCDinfo core to search through the screen files, find any referance to that particular Ascii code, and add a custom made graphic in the same position?

It would probably be easier I think to implement this by using some LCD's ability to have custom characters loaded into them, and then just using those.

Anyway, just my thought on the idea... I might have misread something or just got totally confused somewhere, so feel free to let me know if I have. :)

_________________
Syridian,
http://syridian.com


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 17, 2005 17:44 
Offline

Joined: Tue Jan 25, 2005 17:11
Posts: 11
Hi,

yes, i wanted it to be on the fly and the core of LCDInfo only has to do the replacement/custom for strings so it shouldnt have to scan the hole screen file.

And you are right that its easier to upload chars to the LCD but not all LCDs has this option and custom chars could be used for all types of LCDs.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 17, 2005 23:34 
Offline
User avatar

Joined: Fri Dec 03, 2004 7:03
Posts: 201
Location: Sydney, Australia
Well,

If you are any good at programming, you could take a look at the LCDinfo source files, and workout how to add this functionality. The files are available in here.

_________________
Syridian,
http://syridian.com


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 18, 2005 0:23 
Offline

Joined: Tue Jan 25, 2005 17:11
Posts: 11
Hi,

I could give it a try but i dont think that my free version of Borland C++ will do the job :)

Michael.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 2 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group