Yes, Gordon’s createArrayBuffer and drawImage with palettes are exactly the same mechanism. Actually you can usually get away with one or two buffers and move them around to write at different times. My gpsnav app uses only one buffer which is used every 200ms to draw the compass display and once a second for numerical data display.
Combining javascript and compiled C in your driver is really neat, I was going to ask to see it!
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.
Yes, Gordon’s
createArrayBuffer
anddrawImage
with palettes are exactly the same mechanism. Actually you can usually get away with one or two buffers and move them around to write at different times. Mygpsnav
app uses only one buffer which is used every 200ms to draw the compass display and once a second for numerical data display.Combining javascript and compiled C in your driver is really neat, I was going to ask to see it!