Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pynxc/tutorial_samples/3_spiral.py
blob: 90f9f5e1a3353a33ce7de48c57fe35420833e0f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
DEFINE TURN_TIME=360

def main():
    
    move_time = 200           # set the initial value
    for repeat in range(50):
    
        OnFwd(OUT_AC, 75)
        Wait(move_time)       # use the variable for sleeping
        OnRev(OUT_C, 75)
        Wait(TURN_TIME)
        move_time += 200         # increase the variable

    Off(OUT_AC)