adafruit / adafruit/AdafruitClassLibrary

Calling DotStar.Show() eventually causes strange issues

Open
#9 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
24
Forks
10
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the issue in the Windows IoT Core Raspberry Pi setup using the reported task or timer loop and repeated DotStar.Show() calls. Trace the DotStar.Show() entry point and observe when audio playback and GPIO button handling stop; done means the cause and a reproducible fix or documented limitation are established.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
embedded-iot
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.