Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pynxc/tutorial_samples/8_OnReg.py
diff options
context:
space:
mode:
Diffstat (limited to 'pynxc/tutorial_samples/8_OnReg.py')
-rw-r--r--pynxc/tutorial_samples/8_OnReg.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/pynxc/tutorial_samples/8_OnReg.py b/pynxc/tutorial_samples/8_OnReg.py
new file mode 100644
index 0000000..864fa83
--- /dev/null
+++ b/pynxc/tutorial_samples/8_OnReg.py
@@ -0,0 +1,17 @@
+def main():
+
+ OnFwdReg(OUT_AC,50,OUT_REGMODE_IDLE)
+ Wait(2000)
+ Off(OUT_AC)
+ PlayTone(4000,50)
+ Wait(1000)
+ ResetAllTachoCounts(OUT_AC)
+ OnFwdReg(OUT_AC,50,OUT_REGMODE_SPEED)
+ Wait(2000)
+ Off(OUT_AC)
+ PlayTone(4000,50)
+ Wait(1000)
+ OnFwdReg(OUT_AC,50,OUT_REGMODE_SYNC)
+ Wait(2000)
+ Off(OUT_AC)
+