Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/16/01 21:49
Read: times


 
#14174 - RE: Cursor Positioning
I've used next code WITH succes.

void set_pos_lcd(byte line, byte pos)
{
byte position=0;
switch (line)
{
case 0 : position = 0x80;break;
case 1 : position = 0xC0;break;
case 2 : position = 0x94;break;
case 3 : position = 0xC4;break;
default : position = 0x80;
}
position += pos;
LCD_EN = 1;
LCD_RS = 0;
LCD_DDR = LCD_WRITE;
LCD_DR = position;
LCD_EN = 0;
LCD_RS = 0;
}

Use as you please .....


Bert Regards

List of 4 messages in thread
TopicAuthorDate
Cursor Positioning            01/01/70 00:00      
RE: Cursor Positioning            01/01/70 00:00      
RE: Cursor Positioning            01/01/70 00:00      
RE: Cursor Positioning            01/01/70 00:00      

Back to Subject List