Shop OBEX P1 Docs P2 Docs Learn Events
programmin bs2 with serial lcd — Parallax Forums

programmin bs2 with serial lcd

voukefalasvoukefalas Posts: 2
edited 2012-11-10 08:51 in BASIC Stamp
hallo..
i try to programme mine bs2 and i totaly comfused.
I have 2 push button and one lcd .(and the resistors of course :) )
When one pushbutton have been pressed i want to clrear my lcd and write a menu.I have already try lot's thing that i had found in web but i still din't have a solution.
Here is my small programme ....could you somebody helps me with that?
my lcd doesn't clear and the letters is side by side(from the 2 menus that i had)

DO
INPUT 1
INPUT 2

IF (IN1=1) THEN GOSUB lcd1
IF (IN2=1) THEN GOSUB lcd2

PAUSE 100
LOOP

lcd1 :

SEROUT 15, 16780,["main programme"]
SEROUT 15,16780 ,["alexandros"] /here is that i have a promblem and if i pressed again the button,the letters in the lcd steps side by side

RETURN

lcd2:
SEROUT 15,16780,[" "]
PAUSE 50
SEROUT 15,16780,["service "]
RETURN

Comments

Sign In or Register to comment.