This project is not based on the Arduino IDE, and uses an Eclipse-based IDE that is designed for this MCU family. Bare metal software development gives you full control over the software development process, but also has a higher learning curve and this should be considered an advanced project as such.

The project was written entirely in C using the free cross-platform LPCXpresso IDE (version 8.2.2 specifically). To add support for the LPC824 MCU, the LPC824 Code Bundle for LPCXpresso (version 1) was also downloaded and installed.

You can perform the following steps to make the software available locally on your development machine:

  1. Download and install the LPCXpresso 8.2.2 IDE for your operating system
  2. Download the LPC824 Code Bundle for LPCXpresso (version 1)
  3. Download the Project Code Bundle, available as a .zip file in the Github repo.

Importing the LPC824 Code Bundle

Before you can import the project files, you need to import the LPC824 Code Bundle, which includes all the low level drivers for this project:

  • Click the Import Projects button in the QuickStart menu in the bottom right-hand corner of the IDE:
  • In the dialogue box that pops up, select the appropriate .zip file in the Archive field:
  • Click the Finish button to import the files, which should results in your Project Explorer looking like this:

Importing the Project Code Bundle

Next, you need to import the project code bundle, which is provided as a .zip file for easy import.

  • Select the Import project menu option again in the Quickstart window:
  • Now point to the project Code Bundle in the Archive field:
  • Click the Finish button and you should have a new project in the Project Explorer called lpc824_neopixel:

You can expand this menu option to see the source code for this project, double-clicking on main.c to see the project entry point:

  • At this point, you can access and modify the source code if required:

NeoPixel Setup

The included project supports both RGB and RGBW NeoPixels, and you can adjust the number of NeoPixels present if you aren't using an identical NeoPixel layout.

Before proceeding any further, make sure the following two values are set to match the NeoPixel setup you are using (these can be found in main.c):

Set WS2812_LED_CLRS to 3 for RGB NeoPixels or 4 for RGBW NeoPixels!
Download: file
#define	WS2812_LED_CNT	(16)
#define WS2812_LED_CLRS	(3)					// 3 = RGB, 4 = RGBW

Compiling the Project

To make sure everything is installed correctly, you can try to compile the project as follows:

  • Make sure that the correct project is selected in the Project Explorer window on the left-hand side of the IDE
  • Connect your LPCXpresso824-Max board to your development machine via the USB cable (the board includes an on board SWD debugger that will be used to flash and debug the LPC824 MCU)
  • Select the Project > Build Project menu item to build the project as well as any project depencies (peripherals and utilities libraries in this case):
  • Optionally, you can select the Build 'lpc824_neopixel' (Debug) QuickStart menu item:
  • If you get a popup dialogue box (this should only appear once) select the lpc824_neopixel Debug profile, as shown below, then click the Run button:
  • If everything worked correctly, you should see the compilation results in the Console window at the bottom of the IDE:
  • To flash and run the compiled software, click the Debug 'lpc824_neopixel' (Debug) QuickStart menu item with the board connected to your machine:
  • This will cause the IDE to connect to the debugger, flash the sketch, and stop code execution at the project entry point, which is main(void):
  • To continue code execution use the Resume (F8) or other toolbar icons or keyboard shortcuts:
This guide was first published on Apr 20, 2017. It was last updated on Apr 20, 2017.
This page (Software) was last updated on Oct 06, 2020.