CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Lines in Flex LCD

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
HGHK



Joined: 29 Jun 2010
Posts: 33

View user's profile Send private message Yahoo Messenger

Lines in Flex LCD
PostPosted: Wed Nov 10, 2010 6:27 am     Reply with quote

How we can set Lines in this driver ?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Nov 10, 2010 12:40 pm     Reply with quote

You can't easily do it. The flex driver is for a character LCD.
It displays only characters. See this link:
http://www.zonemicro.ca/zoneenglish/images/lcd162b-yhy.jpg

You could make some lines by using dash characters, like this:
Quote:
--------------

Or use other characters like this:
Quote:

|
\
/
_

You could also create some custom characters with line symbols in them.
But the 16x2 display will never be a graphics LCD. It's a character LCD.

If you want a graphics lcd, then buy one. CCS has the following
drivers and example files for graphic LCDs:
Quote:

c:\program files\picc\examples\ex_glcd.c
c:\program files\picc\drivers\glcd.c
c:\program files\picc\drivers\graphics.c
c:\program files\picc\drivers\hdm64gs12.c
c:\program files\picc\drivers\ks0108.c
c:\program files\picc\drivers\sed1335.c


Make sure you have a driver for the graphic lcd, before you buy it.
Identify the chip used by the graphic lcd that you want to buy.
Then look for the driver file in the list above. If you don't have a driver,
then don't buy the graphic lcd !

This thread explains how to find a driver for your proposed graphic lcd:
http://www.ccsinfo.com/forum/viewtopic.php?t=44006
HGHK



Joined: 29 Jun 2010
Posts: 33

View user's profile Send private message Yahoo Messenger

PostPosted: Mon Nov 15, 2010 10:20 am     Reply with quote

sorry! My mean from "Line" is the PIC Pins that transfer data to LCD.
Thank for your attention
_________________
My Gmail is:
HGholizadehK@Gmail.com
You can send pm for me in it
Geps



Joined: 05 Jul 2010
Posts: 129

View user's profile Send private message

PostPosted: Mon Nov 15, 2010 10:23 am     Reply with quote

At the top of the driver it has #define statements that define which pin does what.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group