NXTurtle
written by martin on 2010-10-01
NXTurtle is a mashup of the Python Turtle graphics for TK module and the LEGO Mindstorms driver NXT-Python.
It allows you to control a LEGO Mindstorms robot like the turtle known from the Logo programming language.
from nxturtle import NXTurtle yertle = NXTurtle(connect=True) # [... some initialization ...] # standard turtle action yertle.pendown() yertle.forward(10) yertle.left(90) yertle.home() # and some more bricky capabilities yertle.play_tone(440, 500)
Read the Tutorial for more...