adafruit / AdafruitClassLibrary

Windows IoT Core libraries for Raspberry Pi
MIT License
26 stars 11 forks source link

Calling DotStar.Show() eventually causes strange issues #9

Open rellis238 opened 6 years ago

rellis238 commented 6 years ago

I am running a for loop inside a task (also tried dispatchertimer and threadpooltimer) to create an animated sequence. At the end of the setpixel loop I call .show(). It all works fine however if it runs for a few seconds I get strange issues happening in my app. For example I have a looping sound playing. It will stop abruptly. Additionally I am using a few GPIO pins to detect button presses. Those also stop working. I have confirmed that if I comment out the .Show() method everything works.

Too many calls to .Show() make things stop working in my app. There are no errors and the light strip keeps functioning. What is happening here?