Skip to content

A collection of useful libraries written in Not eXactly C

Notifications You must be signed in to change notification settings

sheabunge/nxc-lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NXC Lib

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.

Usage

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

Libraries

NXC Lib

A collection of generic macros and functions to use in your code.

Center Text

Allows you to display text in the center of the NXT screen.

  • Author: Shea Bunge
  • Use: #include "CenterText.Lib.nxc"

Choose Number

Prompts the user to enter a number using the NXT buttons

  • Author: Shea Bunge
  • Use: #include "ChooseNum.Lib.nxc"

Screen Print

A single function that can display text on every line of the NXT screen.

  • Author: Shea Bunge
  • Use: #include "ScreenPrint.Lib.nxc"

About

A collection of useful libraries written in Not eXactly C

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published