I'm writing a library for a project i created, but it depends on the Neopixel library from adafruit. I want to remove this dependency and have my library be a stand-alone library.

Is there a way to run a ws2811 chip without the neopixel or similar library?

  • Yes. Copy the code from the Neopixel library into yours.
    – Majenko
    Jan 10, 2019 at 21:27
  • Why is it important to remove the dependency? Of course there is a way to run the WS2811 chip, but you would have to implement the documented protocol yourself, which has already been done several times by several library authors. Jan 10, 2019 at 21:28
  • I understand. but i want to just run the chip - its not running rgb leds.
    – rcpilotp51
    Jan 10, 2019 at 21:29

1 Answer 1


The Adafruit Neopixel library is licensed under GPL v3. You can fork a copy of this library into your own code and modify it to suit your own requirements, but if you distribute your code, your compiled project, or a product containing the library or any portion of it, you must ensure you follow the rules of the license by which the library is governed. Those terms of license may include release of the source code if you use any portion of the licensed library in a product. Opinions differ on the exact meaning of GPL v3 with libraries.

You should be able to copy the library into your own codebase and strip out the color-specific routines, put in your own application-specific data-setting routines, but use the same underlying protocol implementation.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.