Tutorial to set up lego NXT. (Tested in Ubuntu 12.04 Alpha 2)
- Step 1 (Install udev rules and configure):
Code: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:
Than run:Code:task main () { while (1) { OnFwd(OUT_A, 75); } }
The nbc compiler is in the file have you downloaded.Code:./nbc -d -S=usb test.nxc
Bookmarks