malc-c
- 20th April 2010, 20:10
Need some further advice.
I'm using three buttons to provide menu selection, via a list of options on an LCD
Main:
LCDOUT $FE,2,"Night Time Settings"
lcdout $FE, $C0, "Use + key for Option"
IF !plus_butt THEN Option = option + 1
pause 150
IF option = 1 THEN lcdout $FE, $D4, "Set Number of Vivs "
if option = 2 THEN lcdout $FE, $D4, "Set Start Times "
if option = 3 THEN lcdout $FE, $D4, "Set Stop Times "
if option >3 THEN option = 0
goto main
This works fine in displaying option I want, however I would like to then goto the desired option by pressing the set button. I tried
if !set_butt AND option = 1 goto Vivs:
But that didn't work. Does anyone have any suggestions on how to get this working. I can't use "IF option = 1 goto vivs" as this would jump before options 2 and 3 could be selected...
I'm using three buttons to provide menu selection, via a list of options on an LCD
Main:
LCDOUT $FE,2,"Night Time Settings"
lcdout $FE, $C0, "Use + key for Option"
IF !plus_butt THEN Option = option + 1
pause 150
IF option = 1 THEN lcdout $FE, $D4, "Set Number of Vivs "
if option = 2 THEN lcdout $FE, $D4, "Set Start Times "
if option = 3 THEN lcdout $FE, $D4, "Set Stop Times "
if option >3 THEN option = 0
goto main
This works fine in displaying option I want, however I would like to then goto the desired option by pressing the set button. I tried
if !set_butt AND option = 1 goto Vivs:
But that didn't work. Does anyone have any suggestions on how to get this working. I can't use "IF option = 1 goto vivs" as this would jump before options 2 and 3 could be selected...