-
Notifications
You must be signed in to change notification settings - Fork 37
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
Advanced feature tour crashes on nodemcu #16
Comments
I was able to track down this problem of being a WDT reset because something is taking too long to execute, thus the need to use the yield() function. So in the Lixie.cpp file, I did this in the progress function: void Lixie::progress(float percent, CRGB col1, CRGB col2){
uint16_t index = NumLEDs-(int)(NumLEDs*(percent/100.0));
for(uint16_t i = 0; i < NumLEDs; i++){
if(i <= index){
leds[i] = col2;
}
else{
leds[i] = col1;
}
leds[i] = enforce_brightness(leds[i]);
yield(); // <--- Added
}
FastLED.show();
yield(); // <-- Added
} Found the idea here : https://forum.arduino.cc/index.php?topic=449573.msg3092997#msg3092997 On mine, there is no problem with the rainbow function probably because I'm only using 4 digits. But I think you can apply the same method and it will work. |
See PR #20 |
Hey Rom, i updated the library with the yield functions in those places, unfortunately it keeps crashing in the same spot with 10 lixies.
|
I just ran the exception through a ESP decoder tool, and got this: 0x40203978: __ieee754_pow at ?? line ? I'm assembling another batch of 20-30 tonight, so I'll be able to tie 10 together and try some things out. I'll keep you updated! However, I don't have a NodeMCU for testing, more of a Wemos D1 Mini guy. Hopefully that shouldn't matter, they're both ESP-12 based controllers. |
Well, it's been 6 years and counting, and we're still waiting for an update |
Run vanilla script on 6 lixie and 10 lixie arrays with the same results on two different nodemcus: all but two functions work great... prog_bar() and rainbow_count();
⸮Your Lixies can also show a rudimentary progress bar...
Soft WDT reset
ctx: cont
sp: 3ffef2a0 end: 3ffef600 offset: 01b0
This one dies at a different time, but always crashes before finishing
And here's millis() shown with lix.rainbow():
Soft WDT reset
ctx: cont
sp: 3ffef3a0 end: 3ffef5f0 offset: 01b0
The text was updated successfully, but these errors were encountered: