View previous topic :: View next topic |
Author |
Message |
asjad
Joined: 09 Mar 2004 Posts: 52 Location: Greater Manchester - UK
|
LCD_PUTC command |
Posted: Fri Mar 12, 2004 9:18 am |
|
|
Has anyone managed to get:
(a) Cursor to flash
(B )Create custom Characters
USING THE "LCD_PUTC" COMMAND????
Thanks _________________ Best Regards |
|
![](templates/subSilver/images/spacer.gif) |
Charlie U
Joined: 09 Sep 2003 Posts: 183 Location: Somewhere under water in the Great Lakes
|
|
Posted: Sun Mar 14, 2004 7:39 pm |
|
|
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. |
|
![](templates/subSilver/images/spacer.gif) |
plehman
Joined: 18 Feb 2004 Posts: 12
|
|
Posted: Sun Mar 14, 2004 9:30 pm |
|
|
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 |
|
![](templates/subSilver/images/spacer.gif) |
|