Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pynxc/tutorial_samples/12_timers.py
blob: e024c1cdce1b156cba51431f7c37327f23b8eb8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
def main():
    t0 = CurrentTick()
    time=0
    
    while time<10000:
        time = CurrentTick()-t0
        OnFwd(OUT_AC, 75)
        Wait(Random(1000))
        OnRev(OUT_C, 75)
        Wait(Random(1000))
  
    
    Off(OUT_AC);