mirror of
https://github.com/SlackBuildsOrg/slackbuilds
synced 2024-09-28 15:21:00 +02:00
python/nxt-python: Update README, slack-desc.
This commit is contained in:
parent
4b91b58469
commit
540e272d6a
2 changed files with 19 additions and 10 deletions
|
@ -1,26 +1,35 @@
|
||||||
nxt-python is a python 2.x driver/interface for the Lego Mindstorms NXT robot.
|
nxt-python (python module to control Lego NXT)
|
||||||
|
|
||||||
|
nxt-python is a python 2.x driver/interface for the Lego Mindstorms
|
||||||
|
NXT robot.
|
||||||
|
|
||||||
Setup
|
Setup
|
||||||
------
|
------
|
||||||
|
|
||||||
In order to use nxt-python with an NXT kit, you should add a 'lego' group to your system, and add yourself to that group:
|
In order to use nxt-python with an NXT kit, you should add a 'lego'
|
||||||
|
group to your system, and add yourself to that group:
|
||||||
|
|
||||||
# groupadd lego
|
# groupadd lego
|
||||||
# usermod -a -G lego YourUserName
|
# usermod -a -G lego YourUserName
|
||||||
|
|
||||||
You will also want to set up a udev rule to identify NXT hardware and grant the 'lego' group permission to use it.
|
You will also want to set up a udev rule to identify NXT hardware and
|
||||||
|
grant the 'lego' group permission to use it.
|
||||||
|
|
||||||
A sample rule is included for you in /usr/share/nxt-python, but you may want to verify the vendor code of the NXT unit.
|
A sample rule is included for you in /usr/share/nxt-python, but you may
|
||||||
|
want to verify the vendor code of the NXT unit.
|
||||||
|
|
||||||
To verify the vendor code, connect the NXT hardware to your computer and then run:
|
To verify the vendor code, connect the NXT hardware to your computer
|
||||||
|
and then run:
|
||||||
|
|
||||||
lsusb
|
lsusb
|
||||||
|
|
||||||
Look at the ID for the Lego device; it will probably be 0694, but if not, then change the value in the sample udev rule to match.
|
Look at the ID for the Lego device; it will probably be 0694, but if not,
|
||||||
|
then change the value in the sample udev rule to match.
|
||||||
|
|
||||||
Save the sample udev rule (70-lego.rules) to /etc/udev/rules.d/
|
Save the sample udev rule (70-lego.rules) to /etc/udev/rules.d/
|
||||||
|
|
||||||
Log out and log back in, and you should now have full control, via Python, over your NXT hardware.
|
Log out and log back in, and you should now have full control, via Python,
|
||||||
|
over your NXT hardware.
|
||||||
|
|
||||||
Requires at least one of these
|
Requires at least one of these
|
||||||
-------------------------------
|
-------------------------------
|
||||||
|
|
|
@ -6,10 +6,10 @@
|
||||||
# customary to leave one space after the ':' except on otherwise blank lines.
|
# customary to leave one space after the ':' except on otherwise blank lines.
|
||||||
|
|
||||||
|-----handy-ruler------------------------------------------------------|
|
|-----handy-ruler------------------------------------------------------|
|
||||||
nxt-python: nxt-python (Python module to control Lego NXT)
|
nxt-python: nxt-python (python module to control Lego NXT)
|
||||||
nxt-python:
|
nxt-python:
|
||||||
nxt-python: nxt-python is a python driver/interface for the
|
nxt-python: nxt-python is a python driver/interface for the Lego Mindstorms NXT
|
||||||
nxt-python: Lego Mindstorms NXT robot.
|
nxt-python: robot.
|
||||||
nxt-python:
|
nxt-python:
|
||||||
nxt-python: http://code.google.com/p/nxt-python/
|
nxt-python: http://code.google.com/p/nxt-python/
|
||||||
nxt-python:
|
nxt-python:
|
||||||
|
|
Loading…
Reference in a new issue