Shop OBEX P1 Docs P2 Docs Learn Events
Question about repeat — Parallax Forums

Question about repeat

karakikokarakiko Posts: 11
edited 2010-03-13 13:23 in Propeller 1
Hi my dear friends
it seems that i didn't understand the repeat·nono.gif
 repeat 
    test1.LED(1,0) 
    test1.LED(0,0)
    WaitCnt(OneSecond + Cnt) 
    test1.LED(1,200) 
    test1.LED(0,200) 

with this code i repeat endlessly the: test1.LED(1,0)
···················································test1.LED(0,0)
How i can repeat all the:test1.LED(1,0)
································· test1.LED(0,0)
····························· ··· WaitCnt(OneSecond + Cnt)
····························· ··· test1.LED(1,200)
····························· ··· test1.LED(0,200)
Thanks in advance,
Karakik
·························································

Comments

  • MagIO2MagIO2 Posts: 2,243
    edited 2010-03-13 11:54
    In this code there is no problem. I'd suggest to attach the .SPIN file or an archive of all used .SPIN files to your post, so that we can see the whole thing.
  • karakikokarakiko Posts: 11
    edited 2010-03-13 11:59
    i catch it , i should add WaitCnt(OneSecond + Cnt) at the end , thanks MagIO2
  • Graham StablerGraham Stabler Posts: 2,510
    edited 2010-03-13 13:23
    A good example of one error pretending to be another, save in your memory banks!
Sign In or Register to comment.