-
Wed 2019.11.27
Hi @Coder2012, don't have these devices to be able to test,
'just not sure how to even debug it'
but I did notice a few things. It's likely bad data is being passed to the graphics object, or an array is going out of range or running out of memory perhaps.
Function scroll() is called one time. L42 and L43 will only be called one time, incidentally
setInterval() returns a number, the timer ID, not a boolean, so var interval is never cleared.
As L45 is being called ten times a second, to check if running out of memory, place a
process.memory()
inside that interval. I'd also only check, say every tenth time using a conditional such asif( (skipcounts % 10) == 0 )
so that output to the console (Left-Hand side) may keep up. Could also check the arguments at that point to see if out of bounds errors may be occurring.
Try placing a try/catch block around the functions called inside onInit() to see if any errors are occurring, bubbling up and not being caught.
Suspect L34. Using concat repetitively may be appending beyond the available buffer size.
Hey guys,
I have an Espruino WiFi (love this thing) with an 8x8 matrix led display as recommended here. I have node-red running on my Raspberry PI 4. My Espruino makes calls every 3 seconds to my PI to get the current time and displays it scrolling across the matrix.
The problem is it just stops after about 10 minutes, I checked the Rasperry Pi and it is still being called by the Espruino every 3 seconds in the log. So the reason it's not displaying could be in this script somewhere, just not sure how to even debug it...