Nxt-python-hints

From Earlham CS Department
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]