repeat problem
i use window vista....i·write program like this....
Pub LedOn
dira[noparse][[/noparse]0] ~~
outa[noparse][[/noparse]0] := 1
waitcnt(clkfreq + cnt)········ '1s delay
outa[noparse][[/noparse]0] := 0
led on in 1s and off...i have no problem with that code...
the problem is....
Pub LedOn
dira[noparse][[/noparse]0] ~~
repeat· '<
outa[noparse][[/noparse]0] := 1
waitcnt(clkfreq + cnt)········ '1s delay
outa[noparse][[/noparse]0] := 0
waitcnt(clkfreq + cnt)········ '1s delay
led not turn on when i put repeat.....
it is because propeller tool......?
Post Edited (KEELOQ) : 11/18/2009 2:09:41 PM GMT
Pub LedOn
dira[noparse][[/noparse]0] ~~
outa[noparse][[/noparse]0] := 1
waitcnt(clkfreq + cnt)········ '1s delay
outa[noparse][[/noparse]0] := 0
led on in 1s and off...i have no problem with that code...
the problem is....
Pub LedOn
dira[noparse][[/noparse]0] ~~
repeat· '<
outa[noparse][[/noparse]0] := 1
waitcnt(clkfreq + cnt)········ '1s delay
outa[noparse][[/noparse]0] := 0
waitcnt(clkfreq + cnt)········ '1s delay
led not turn on when i put repeat.....
it is because propeller tool......?
Post Edited (KEELOQ) : 11/18/2009 2:09:41 PM GMT
Comments
indentation may help
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
cmapspublic3.ihmc.us:80/servlet/SBReadResourceServlet?rid=1181572927203_421963583_5511&partName=htmltext
Hello Rest Of The World
Hello Debris
Install a propeller and blow them away
if you write
where the commands below the repeat are NOT indented this means there is a empty repeat-loop
if you write
where the commands below the repeat ARE indented all the lines that are indented belong to the repeat
best regards
Stefan