You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Occasionally the sketch will not progress to the next animation. This is particularly noticeable when a complex animation is running and the workload is high.
The cause is a bug in the timer ISR responsible for flagging when it is time to change the animation.
The original codes checks to see if animationTimer is equal to animationMax and sets the flag. Occasionally animationTimer will be incremented without evaluating the following IF statement. From that point onward the the value of animationTimer will be greater than animationMax and fail to set the flag.
The solution is to change line 606 of cubeplex.h to evaluate if animationTimer is greater than or equal to* animationMax.
The corrected code is:
ISR(TIMER1_OVF_vect) {
animationTimer++;
if (animationTimer >= animationMax) { // change the equal == to greater than or equal to >=
continuePattern = false;
animationTimer=0;
}
}
The text was updated successfully, but these errors were encountered:
Occasionally the sketch will not progress to the next animation. This is particularly noticeable when a complex animation is running and the workload is high.
The cause is a bug in the timer ISR responsible for flagging when it is time to change the animation.
The original codes checks to see if animationTimer is equal to animationMax and sets the flag. Occasionally animationTimer will be incremented without evaluating the following IF statement. From that point onward the the value of animationTimer will be greater than animationMax and fail to set the flag.
The solution is to change line 606 of cubeplex.h to evaluate if animationTimer is greater than or equal to* animationMax.
The corrected code is:
The text was updated successfully, but these errors were encountered: