Including multiple libraries on the same sketch

Microsoft's MakeCode platform for easy blocks-style programming

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
live4film
 
Posts: 46
Joined: Sat Nov 23, 2019 3:57 pm

Including multiple libraries on the same sketch

Post by live4film »

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?

User avatar
dastels
 
Posts: 15608
Joined: Tue Oct 20, 2015 3:22 pm

Re: Including multiple libraries on the same sketch

Post by dastels »

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

Locked
Please be positive and constructive with your questions and comments.

Return to “MakeCode”