diff options
Diffstat (limited to 'pynxc/tutorial_samples/7_drive_music.py')
-rw-r--r-- | pynxc/tutorial_samples/7_drive_music.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/pynxc/tutorial_samples/7_drive_music.py b/pynxc/tutorial_samples/7_drive_music.py new file mode 100644 index 0000000..750be10 --- /dev/null +++ b/pynxc/tutorial_samples/7_drive_music.py @@ -0,0 +1,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); |