Please note: Friday June 18 is a holiday celebrating Juneteenth, please allow extra time for your order to arrive and plan accordingly.
0

Including multiple libraries on the same sketch
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Including multiple libraries on the same sketch

by live4film on Fri Feb 12, 2021 2:58 pm

I have some code from the Strand Test in the Adafruit Neopixel Library, and I want to add some code that a friend gave me from the FastLED library.
I'm defining and including both libraries in my sketch, but things haven't been working. Can you add two different libraries to the same sketch?

live4film
 
Posts: 44
Joined: Sat Nov 23, 2019 3:57 pm

Re: Including multiple libraries on the same sketch

by dastels on Fri Feb 12, 2021 3:13 pm

Using multiple libraries is not a problem... unless there's a conflict between them. Both those are for manipulating neopixels so that might be what's happening. If you were more precise about "things haven't been working", I might be able to give a more specific answer.

Dave

dastels
 
Posts: 6481
Joined: Tue Oct 20, 2015 3:22 pm

Please be positive and constructive with your questions and comments.