shaneshane1
New Member
back again now i have some questions about BASIC, i have been testing my skills on the simulator, still dont have the kit yet will have maybe next week.
I already know most of the commands of by heart, and how to implement them into the simulator
but i am confused with some things
eg:
Now with the (if pin1 = 0 then goto main) code, i want that to function anywhere within the traffic section and not have to wait for all the stages befor it gets to that part of the code.
is this possible?
and yes futz i know this code could probably be alot cleaner,lol
I already know most of the commands of by heart, and how to implement them into the simulator
but i am confused with some things
eg:
Code:
main:
if pin1 = 1 then
goto traffic
endif
goto main
traffic:
high 0
pause 2000
low 0
high 1
pause 4000
low 1
high 2
pause 6000
low 2
if pin1 = 0 then
goto main
endif
goto traffic
Now with the (if pin1 = 0 then goto main) code, i want that to function anywhere within the traffic section and not have to wait for all the stages befor it gets to that part of the code.
is this possible?
and yes futz i know this code could probably be alot cleaner,lol