-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Random colored dots at startup #13
Comments
Reproducable with power-up. |
Not much luck with RCA, but have a way to reproduce and get some observations:
The result is after power up, "B" is displayed, but rows 1 and 2 are corrupted, each with four pixels of seemingly random colors. When powered up from battery, same pattern. But about every three seconds:
This appears to be WDT or brown-out, but is probably not related to the random colored dots. Commenting out the three lines to start BT:
|
Tried to connect BT from Android during the battery powerup. Seems to have trouble connecting until the flashing goes away. Considering that ESP32 BT is sensitive to power, this might indeed be a brown-out. See also #17 |
After some more instrumentation, noticed the following:
|
Refactoring the semaphore code in AnimationTask seems to have fixed the problem. However, when running on just the battery there are some bugs. We'll revisit those in the battery monitor issue. |
Unfortunately it is not clear why the pixels got corrupted. A bit of thought went into this:
Problem was solved, but not extensively tested. There may be some lingering bugs. |
When running alphabet as default, the display is random colored dots until the animation displays "C". Note base class
BitmapAnimation::drawFrame(Frame &frame)
does not clear frame.When running plasma/nervous as default, it's normal. plasma does do
frame.clear()
at beginning ofdrawFrame(Frame&)
Looks like animation player should be initialized with
frame.reset
and/orframe.clear()
.The text was updated successfully, but these errors were encountered: