- This topic has 2 replies, 2 voices, and was last updated 12 years, 9 months ago by
pradeep.
Viewing 3 posts - 1 through 3 (of 3 total)
-
AuthorPosts
-
March 9, 2013 at 2:11 pm #2177
pradeep
Participanthello sir….
Im displaying few text on LCD 16×2. I’m able to shift the display to right. But I want to sift it to left.//below string is for shifting the display to right....
lcdcmd(0x1C); //Shift the entire display to rightWhat is the command to shift the entire display to left?
Please help.
March 11, 2013 at 4:02 pm #9296AJISH ALFRED
ParticipantHi Pradeep,
//LcdCommandWrite(0x18); // shift display and cursor to the left
//LcdCommandWrite(0x1c); // shift display and cursor to the rightHope this helps you.
March 13, 2013 at 5:57 pm #9309pradeep
ParticipantThanku sir.I have used the following code from this site but making a little changes to it in order to get display on both rows of LCD & also shift them towards left.
But once the entire display is shifted to left, it doesnot re-displayes form the right (as in the case of original code to shift the display to right).
Text is displayed when the entire text is at its initial position & then it again starts moving left.// Program to display dynamic text on LCD#include<reg51.h>#define msec 50sbit rs=P3^0; //Register select (RS)sbit rw=P3^1; //Read write (RW) pinsbit en=P3^6; //Enable (EN) pinunsigned char commands[]={0x38,0x0E,0x01,0x06,’