How to use tone() in conjunction with FastLED

I have some code that drives two LED strips and will also create a tone on a piezo buzzer. LED animation works great on its own. Buzzer works great on its own. Together, I get artifacts resembling blocking code somewhere. I've Isolated the problem as the call to FastLED.show(), which I now understand is blocking.

I've never noticed anything as a result of this blocking, but I know others have. I know other libraries will have similar issues, so I guess I'm wondering if there's an easy workaround that I'm not seeing? Or is it not possible with one Arduino?

TIA!

I'm 99% sure this is not a code issue, so I will include if requested, but it is over 400 lines and the issue is not isolated to any one part.

Always include code, drawing and identifying data (LED strips are just LEDs). It will help you.

No.

It is but you will have to use some extra hardware to generate your tone, or use the dot star type of LED strips because that type does not produce blocking code.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.