With framebuffer in memory created by Graphics.createArrayBuffer the behaviour is that after resetting it returns undefined until you draw something, which makes sense.
With display this is used so that in g.flip() implementation you know which area is modified and must be send to the display.
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.
With framebuffer in memory created by Graphics.createArrayBuffer the behaviour is that after resetting it returns
undefined
until you draw something, which makes sense.With display this is used so that in g.flip() implementation you know which area is modified and must be send to the display.