|
Project Information
Featured
|
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. StatusThis is a hollyday project and barely tested. Just to remind you THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Having said that: Have fun! Any feedback is welcome :-) Requirements and installation
After this, you are ready to use it: Examplefrom 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... |