Feb 25, 2011 #1 M mannoooj Newbie level 5 Joined Feb 20, 2011 Messages 9 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Activity points 1,344 Hello ..... I need help in 2*16 LCD programing..... I want to display some text on 1st line continuously and want to vary text on 2nd line as per requirement. Thank you
Hello ..... I need help in 2*16 LCD programing..... I want to display some text on 1st line continuously and want to vary text on 2nd line as per requirement. Thank you
Feb 25, 2011 #2 H horace1 Advanced Member level 5 Joined Nov 18, 2008 Messages 2,118 Helped 596 Reputation 1,188 Reaction score 571 Trophy points 1,393 Location Norwich, UK Activity points 13,063 you write a function which will display text on a specified line, e.g. Code: // write string on line (1 or 2) void lcdString(unsigned char line, unsigned char *string); then call it with the line 1 or 2 as required
you write a function which will display text on a specified line, e.g. Code: // write string on line (1 or 2) void lcdString(unsigned char line, unsigned char *string); then call it with the line 1 or 2 as required
Feb 25, 2011 #3 alexan_e Administrator Joined Mar 16, 2008 Messages 11,888 Helped 2,021 Reputation 4,158 Reaction score 2,031 Trophy points 1,393 Location Greece Activity points 64,371 Your LCD library probably has a "gotoXY" function (check your library) , you can use it to go to a specific line/char position and then use the "lcd_putchar" function (again check your library for the correct name) to write what you want. Alex
Your LCD library probably has a "gotoXY" function (check your library) , you can use it to go to a specific line/char position and then use the "lcd_putchar" function (again check your library for the correct name) to write what you want. Alex
Feb 25, 2011 #4 B bajgik Member level 1 Joined Jan 25, 2006 Messages 37 Helped 11 Reputation 22 Reaction score 10 Trophy points 1,288 Location Malta Activity points 1,469 check this tutorial might help: **broken link removed**