How can I write something to the LCD (for example: "INGRESE HORA ACTUAL") that is bigger than the display (2 x 16) and to create a delay between characters? If I use lcd_putc("INGRESE HORA ACTUAL"), it write "INGRESE HORA ACT" and without delay between letters.
Thanks
I
dyeatman
Joined: 06 Sep 2003 Posts: 1933 Location: Norman, OK
Posted: Thu Nov 24, 2005 8:14 pm
You didn't give any kind of details like the display type, the version of the CCS compiler and the PIC model.
Depending on the display controller you should be able to set the display to scroll left when you add new characters. You will have to look at the display data sheet to find out the control sequence.
As far as the delay you will have to use print the characters to the display one at a time. If you want to use any sort of formatting use sprintf() to a string then output the string one char at a time with a delay in between. Otherwise just use a loop and putc the chars to the LCD with the delays.
Guest
Posted: Fri Nov 25, 2005 1:41 pm
I have a 2 x 16 LCD Hitachi44780 compatible
CCS IDE version 3.43
PCH version 3.19
Tanks
dyeatman
Joined: 06 Sep 2003 Posts: 1933 Location: Norman, OK
Posted: Fri Nov 25, 2005 2:24 pm
Thats the standard LCD controller and has scroll left capability. It also has the ability to place characters in specific locations.
See LCD.C in the drivers directory for the basic driver.
See the link below here for the data sheet and all the commands that can be used. Page 24 is the instruction set. Take some time to learn it. This display controller is very widely used The data sheet also gives all the connection info. See the LCD.C driver header for more info.
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