Not eXactly C
From EverybodyWiki Bios & Wiki
Not eXactly C, or NXC, is a high-level programming language for Lego Mindstorms NXT designed by John Hansen in 2006. 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 [the value is in milliseconds](note that 1000 = 1 second)
Off(OUT_BC); //off the motors connected to ports B and C
}
See also
References
External links
- nxcEditor
- Bricx Command Center
- Not eXactly C
- NXC Tutorial
- NXC Guide
- A NXT 2.0 robot in action, programmed using NXC.
| Stub icon | This Lego-related article is a stub. You can help EverybodyWiki by expanding it. |
This article "Not eXactly C" is from Wikipedia. The list of its authors can be seen in its historical and/or the page Edithistory:Not eXactly C. Articles copied from Draft Namespace on Wikipedia could be seen on the Draft Namespace of Wikipedia and not main one.
