I am working on a project that has an Arduino performing two different tasks along side each other. One, of course, is controlling and getting data from a Pixy2, and the other is controlling a strip of Adafruit NeoPixels. Both sides of the code work fine when run separately, but when run along side each other, the Pixy2 somehow interferes with the NeoPixels causing pixels to turn colors they are not supposed to.
I have narrowed it down some and figured out that the interference only occurs when data is transferred between the Arduino and the Pixy2. The function that updates the NeoPixels is show().
Interestingly, the colors that the pixels turn (but are not supposed to) are very consistent based on what the Pixy2 is doing.
Thanks in advance for any help!
NeoPixel Arduino library downloads: https://learn.adafruit.com/adafruit-neopixel-uberguide/arduino-library-installation
NeoPixel Arduino library use: https://learn.adafruit.com/adafruit-neopixel-uberguide/arduino-library-use