Twinkle effect crashes my ESP32-Wroom-32UE #69
Replies: 1 comment
-
I have the same problem; this is what I have found... The assert at line 308 of misceffects.h is complaining that the new allocated index iNew is already in the litPixels deque. This happens because fadeToBlackBy() called in line 322 will (as it says) fade all LED's to Black including those that are flagged as being lit on the litPixels deque. There is no code provided to cull faded-to-black LED's from the deque. Once an LED is set to Black the if statement at line 296 will allow it to be selected as iNew even though it might still be on the litPixels deque... it will then trigger the assert. Thus it is inevitable that sooner or later this assert will be triggered. The easy solution is to comment out the assert. The code will run happily but every now and then an LED will have a shorter-than-usual twinkle when its "twin" index is popped off the end of the deque and set to black. The better solution would be to use a similar test to the assert in an if statement after line 297 and make the for loop continue to choose a different iNew if the index is already on the deque. Hope that helps. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Log:
Beta Was this translation helpful? Give feedback.
All reactions