Difference between revisions of "Nxt-python-hints"
Jump to navigation
Jump to search
Amweeden06 (talk | contribs) |
|||
Line 7: | Line 7: | ||
finally: | finally: | ||
[stop all your motors] | [stop all your motors] | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Latest revision as of 08:16, 27 April 2010
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]