Thanks! That's interesting then - I guess 550ms isn't too painful. It's a lot better than my JS-only solution!
Is there a way of setting the instance from Espruino?
I just looked at the code, and I think what you need is here: https://github.com/espruino/Espruino/blob/master/libs/graphics/jswrap_graphics.c#L579-L583
So all you need is global["\xff"].gfx = g and I think that'll do it?
global["\xff"].gfx = g
@Gordon started
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.
Thanks! That's interesting then - I guess 550ms isn't too painful. It's a lot better than my JS-only solution!
I just looked at the code, and I think what you need is here: https://github.com/espruino/Espruino/blob/master/libs/graphics/jswrap_graphics.c#L579-L583
So all you need is
global["\xff"].gfx = g
and I think that'll do it?