I am using the case statement so when I add a keypad to this system use the keypad to type in a number that starts from the desired case number. Otherwise I want it to run straight through the whole program.
I can simply add x case statement type in x number to pull up or start from that spot.
My lights are not turning on but my while loop is starting when the button is being pressed. But why is it not counting upwards?
WHILE NOT start DO
FOR i:=1 TO 2 BY 1 DO
CASE i OF
1: up := TRUE;
2: down := TRUE;
I come from a python and C++ background. Sorry if this doesn't make sense, still learning!
Log in to post a comment.