Nxt-python-hints

From Earlham CS Department
Revision as of 08:16, 27 April 2010 by Amweeden06 (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Back to Robotics Main Page


Python Programming Hints

  • Wrap your code in a try/finally block so that you can stop the motors on control-c.
try:
  [your code here]
finally:
  [stop all your motors]