
Originally Posted by
Joe S.
.....
main:
if porta.0 !=0 then
pause50
DoSomthing 'is a goto not a gosub
else
endif
goto main
DoSomething:
for x = 50 to 0 step - 1
goto encoder 'another one here
portB.5 low
next x
return
encoder:
Portb.5 high ' to power up encoder
some code here to count encoder subtracting code from var X
return
I guess this was a quick example.
Check "goto" !
Last edited by sayzer; - 2nd October 2006 at 03:29.
"If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte
Bookmarks