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 CCS Technical Support

LCD_PUTC command

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



Joined: 09 Mar 2004
Posts: 52
Location: Greater Manchester - UK

View user's profile Send private message

LCD_PUTC command
PostPosted: Fri Mar 12, 2004 9:18 am     Reply with quote

Has anyone managed to get:

(a) Cursor to flash

(B )Create custom Characters

USING THE "LCD_PUTC" COMMAND????

Thanks
_________________
Best Regards
Charlie U



Joined: 09 Sep 2003
Posts: 183
Location: Somewhere under water in the Great Lakes

View user's profile Send private message

PostPosted: Sun Mar 14, 2004 7:39 pm     Reply with quote

I use my own LCD functions, but they are close to the CCS functions. I have created custom characters for LCDs but unfortunately, the code belongs to my clients so I can't post it. Here's the concept: create another function that points the write to the CG ram. This CGRam starts at address 0x40, then just write out the pixel row data of the character by using 8 consecutive writes just like writing a character to the display except the data is the hex value for a row, not a character. Then point the LCD to the character position for the new character and write the character using the address where you previously created your custom character. It is fairly straight forward, once you decipher the LCD controller chip data sheet.
plehman



Joined: 18 Feb 2004
Posts: 12

View user's profile Send private message Send e-mail

PostPosted: Sun Mar 14, 2004 9:30 pm     Reply with quote

To make the cursor show up on HD44780 or compatible LCD modules, I used

Code:

lcd_send_byte(0, 0x0F);   // Send Command to Show Cursor


To hide the cursor, use the following:

Code:

lcd_send_byte(0, 0x0C);   // Send Command to Hide Cursor


lcd_send_byte() is in the canned lcd.c module
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