I not sure there was an option to not send echo(0).
This may seem stupid, but there's always the option of just writing the code in a way that doesn't produce warnings - At least for now :)
Javascript actually has some really nasty newline behaviour (which I try not to implement in Espruino because it is horrible), and I'd need to check but it might be that the warnings are actually because the code you write may cause problems with some Javascript interpreters.
I ought to document the fillpoly command better, but it works using a standard scan line algorithm which means that it won't handle a lot of irregular polygons. It may seem strange now, but I remember 20 years ago, all of the built in graphics libs behaved like that :)
Given the differences in speed it might be worth making a slower polygon draw that handled irregular polys though.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I not sure there was an option to not send echo(0).
This may seem stupid, but there's always the option of just writing the code in a way that doesn't produce warnings - At least for now :)
Javascript actually has some really nasty newline behaviour (which I try not to implement in Espruino because it is horrible), and I'd need to check but it might be that the warnings are actually because the code you write may cause problems with some Javascript interpreters.
I ought to document the fillpoly command better, but it works using a standard scan line algorithm which means that it won't handle a lot of irregular polygons. It may seem strange now, but I remember 20 years ago, all of the built in graphics libs behaved like that :)
Given the differences in speed it might be worth making a slower polygon draw that handled irregular polys though.