You think this MikroBASIC code is more difficult than what you came up with?
Code:program Lcd_demo main: Lcd_Init(PORTB) ' Initialize LCD connected to PORTB Delay_ms(500) While true Lcd_Cmd(LCD_CLEAR) ' Send command to LCD "clear display" Lcd_Out(1,1,"Hello") ' Print txt to LCD, 1st row, 1st column Delay_ms(500) Lcd_Cmd(LCD_CLEAR) ' Send command to LCD "clear display" Lcd_Out(2,1,"World") ' Print txt to LCD, 2nd row, 1st column Delay_ms(500) Wend end.
Bookmarks