Skip to content

Implementation

Johannes Berndorfer edited this page Jan 7, 2020 · 2 revisions

Implementation of the Library

The library can either be implemented into an existing STM32 project by copying the source-code into the project or by linking in the library archive. (Static Library) The static library file can be built using make (A built version of the library can be found in the repository under /bin/libneopixel32.a)

Implementation using Source-Code

To implement this library into a project using the source-code copy the sources from /src into the source folder of the project (make sure to add the source file neopixel32.c to the compile list, if you are using a makefile to build your project) and the header file from /inc into the include folder of the project.

Implementation using the Static Library

If you are building your project using a makefile, I suggest using the static library method.

To rebuild the static library, make the Makefile in the root folder of the project. The output library archive can be found under /bin/libneopixel32.a. Link this file while the compilation process to your project.

Clone this wiki locally