jaraco.nxt /

Filename Size Date modified Message
docs
examples
jaraco
tests
47 B
2.4 KB
266 B
29 B
1.1 KB

jaraco.nxt - LEGO Mindstorms NXT Bluetooth API in Python

Status and License

jaraco.nxt implements the LEGO Mindstorms NXT Bluetooth API in Python.

jaraco.nxt is written by Jason R. Coombs. It is licensed under an MIT-style permissive license.

You can install it with easy_install jaraco.nxt, or from the bitbucket repository with easy_install jaraco.nxt==dev.

The jaraco.nxt library also can take advantage of the jaraco input package. To include it as part of the install, use the command easy_install jaraco.nxt[input].

Getting Started

jaraco.nxt provides a message class for sending and receiving messages with the Lego NXT device. First pair the device with your PC by following the instructions included with the device. Then, determine the COM port to which it is connected. The hello world example is to retrieve the battery voltage. You can download the source for that example. You may also browse the other examples.

For more information, read the docstrings of the modules in the packages.

Modules of interest are

  • jaraco.nxt.messages: implements the messages defined by the NXT Bluetooth protocol.
  • jaraco.nxt.controller: demonstrates how to link input from a joystick to messages controlling the motors. Uses jaraco.input.

Changes

1.3.1

  • Bug fixes in messages.MessageWrite.

1.3

  • Added device discovery and support for Bluetooth Sockets using the PyBluez package.

1.2.2

  • Removed dependence on enum and jaraco.util

1.2

  • Added this documentation
  • Updated the project website to use PYPI directly.
  • Moved joystick functionality to its own project - jaraco.input

1.1

  • Updated dependency on jaraco.util, removing many secondary dependencies.

1.0

  • Initial release
  • Implements complete protocol
  • Includes support for XBox 360 controller on Windows
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.