Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pynxc/tutorial_samples/7_drive_music.py
blob: 750be1054f9419ef543e7364362c61bb48bcf304 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
def task_music():
    while True:
        PlayTone(262,400);  Wait(500);
        PlayTone(294,400);  Wait(500);
        PlayTone(330,400);  Wait(500);
        PlayTone(294,400);  Wait(500);

def task_movement():

    while True:
        OnFwd(OUT_AC, 75); Wait(3000);
        OnRev(OUT_AC, 75); Wait(3000);

def main():
    Precedes(task_music, task_movement);