A collection of useful functions and libraries written in Not eXactly C. Feel free to fork and submit pull requests. You will be recognized as the author of code which you contribute to or submit.
You can use NXT Lib by downloading a zip of the master branch and then unzip it into a folder of your choice. To include a library in one of your NXC programs, add the following code close to the top of the program file:
#include "C:/Path/to/NXC/Lib/CenterText.Lib.nxc"
Remember to replace C:/Path/to/NXC/Lib/
with the directory NXC Lib was extracted to previously, and CenterText.Lib.nxc
with the filename of your chosen library.
To simplify this process further, you can specify an include directory in Bricx Command Center's settings, like so:
Now, you only have to include the library filename in the include statement:
#include "CenterText.Lib.nxc"
If you need help, please create an issue, or make a post in the Mindboards forums
A collection of generic macros and functions to use in your code.
- Author: Shea Bunge
- Use:
#include "lib.nxc"
Allows you to display text in the center of the NXT screen.
- Author: Shea Bunge
- Use:
#include "CenterText.Lib.nxc"
Prompts the user to enter a number using the NXT buttons
- Author: Shea Bunge
- Use:
#include "ChooseNum.Lib.nxc"
A single function that can display text on every line of the NXT screen.
- Author: Shea Bunge
- Use:
#include "ScreenPrint.Lib.nxc"