Python
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.org
py-t2n
setup.py

README.org

py-t2n – Talk To NXT with Python

py-t2n is an utility to get informations, send files or receives files from a NXT Lego Brick, through USB or Bluetooth.

The usage is the same as the one of t2n, and the output is mostly the same. The aim of py-t2n is to have a simple tool like t2n, but which is alive and compatible with last NXT firmwares (t2n doesn’t work with firmwares versions > 1.05). This goal is achieved easily thanks to the nxt-python library (some of the code is actually taken from nxt-python’s scripts). py-t2n is GPLv3 licensed.

Installation

Installation is easy:

git clone git://github.com/acieroid/py-t2n
cd py-t2n
python setup.py install

py-t2n has been tested successfully on FreeBSD and Linux, and should work on Microsoft Windows and any other OS where nxt-python is running.

Usage

usage: t2n.py [-h] [-b] [-i] [-ls] [-put <file>] [-get <file>] [-version]

Talk to NXT with Python

optional arguments:
  -h, --help   show this help message and exit
  -b           Check battery level
  -i           Print NXT info
  -ls          List files
  -put <file>  Upload file
  -get <file>  Download file
  -version     Print this software's version