Should printing to serial or grabbing led values slow down an animation significantly? I was trying to grab data to plot what beatsin8() is doing and found that it really messed up the animation when I inserted a for loop to print each pixel value. I don't have the exact code on hand, but it was something like:

int bpm 60;
int lead_dot = 0;
void loop()

  lead_dot = beatsin8(bpm, 0, 28);
  leds[lead_dot].b = 255;


    fadeToBlackBy(leds, NUM_LEDS, 50);


  for(int dot = 0; dot < NUM_LEDS - 1; dot++)




I also tried putting it inside of EVERY_N_MILLISECONDS without much change. When I comment out the print statement it runs nice and smooth. With it, it starts mostly okay and after a few trips back and forth it seems like it's skipping multiple pixels.

This is with 28 leds, for a size reference (not sure how long it takes to evaluate that for loop/printing).
Shared publiclyView activity