SparkFun Forums 

Where electronics enthusiasts find answers.

Have questions about a SparkFun product or board? This is the place to be.
By sasukenebe100
#186942
Hello,

I am currently working on a photon redboard sketch that involves quite a few libraries:

lsm9ds1 (motion tracker)
neopixel library
websockets library
spacebrew library


while i understand I am bringing many variables into the problem I have a general question:

Does having many libraries, even UNUSED, potentially cause lag/timing issues in a microcontroller. At this point I am experiencing performance issues with the neopixel, which relies heavily on timing to function properly. Furthermore it uses interrupts to change state.

Thanks,
Gary
User avatar
By Ross Robotics
#186948
I wouldn't think it would be too many libraries causing issues as 2 or more libraries conflicting with each other. You may want to look through the files or even dig through the docs and see if they're 2 or more libraries are fighting over the same timer or interrupt.