As we can drawImage() direct from Flash thanks to Storage.read() memory-mapping Flash, then other than performance and (I guess) rewrite cycle wear, is there any reason not to use Storage for storing offscreen buffers?
For example, if I have a complicated clock-face redraw every minute (hour and minute hand update), I can Storage.write() it, and then drawImage() it every second during that minute and just slap the second hand on quickly.
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.
As we can
drawImage()
direct from Flash thanks toStorage.read()
memory-mapping Flash, then other than performance and (I guess) rewrite cycle wear, is there any reason not to use Storage for storing offscreen buffers?For example, if I have a complicated clock-face redraw every minute (hour and minute hand update), I can
Storage.write()
it, and thendrawImage()
it every second during that minute and just slap the second hand on quickly....?