- Not eXactly C
-
Not eXactly C, or NXC, is a high-level programming language for the Lego Mindstorms NXT. NXC, which is short for Not eXactly C, is based on Next Byte Codes, an assembly language. NXC has a syntax like C. The IDE for NXC is the Bricx Command Center.
The NXC compiler is available under the Mozilla Public License. [1] A sample code is as shown below:
task main() //sets a new task. main() is compulsory { OnFwd(OUT_BC,75); //ask the motors connected to ports B and C to move forward at a power of 75. Wait(5000); //wait for 5 seconds (note that 1000 = 1 second) Off(OUT_BC); //off the motors connected to ports B and C }
See also
- Lego Mindstorms
- Lego Mindstorms NXT
- Lego Mindstorms NXT 2.0
- Robotics Invention System
- URBI
- Bricx Command Center
- Not Quite C
External links
Categories:- C programming language family
- Robot programming languages
- Lego Mindstorms
- 2000s in robotics
Wikimedia Foundation. 2010.