PDA

View Full Version : [ubuntu] Tutorial Lego NXT



gjvnq
February 15th, 2012, 07:48 PM
Tutorial to set up lego NXT. (Tested in Ubuntu 12.04 Alpha 2)

Step 1 (Install udev rules and configure):





chmod +x setupNxtUSB.v2.sh
sudo ./setupNxtUSB.v2.sh
sudo adduser (your user name) legonxt




Step 2 (The compiler):



Visit http://bricxcc.sourceforge.net/nbc/beta/index.html and download the last version of nbc compiler avaliable.



Step 3 (Your first program):



File test.nxc:


task main () {
while (1) {
OnFwd(OUT_A, 75);
}
}

Than run:


./nbc -d -S=usb test.nxc

The nbc compiler is in the file have you downloaded.