help......problem with lcd

Thread Starter

h.d

Joined Oct 22, 2007
150
hi
i tray to display values on lcd but there are problem
please see the code and the output
and please help........

the code in mBASIC


program lcd1test
dim x,y as byte

dim x1,y1 as string[3]

main:


lcd_config(portb,7,6,5,4,portb,1,2,3)
lcd_cmd(lcd_clear)
lcd_out(1,1,"timer")
lcd_cmd(Lcd_Cursor_Off)

lcd_out(1,8,"km/h")
lcd_out(1,14,"km")

lcd_out(2,8,"18")
lcd_out(2,14,"25")


for y=0 to 60
bytetostr(y,y1)
lcd_out(2,0,y1)

for x=0 to 59
bytetostr(x,x1)
lcd_out(2,3,x1)
delay_ms(1000)
next x

next y


end.
 

Attachments

Top