Ok, here it is - just so you can sleep
CMD is the command register of the LCD, DATA is the data register. Addresses are 0x80 and 0xc0Code:/* Write ASCIIZ String to LCD at specified row and column from *Buffer */ void LCD_puts(byte code *Buffer){ byte x; LcdColumn = 0; LCD_write(0x80,CMD); while (x = *Buffer++) { LCD_write(x,DATA); if (LcdColumn++ == 7) LCD_write(0xc0,CMD); } }
JF
Bookmarks