I had a bit of code that was repeatedly doing:
function d() { var img = require("heatshrink").decompress(atob("...")); g.drawImage(img, 80, 80, {scale:3, rotate:radians(course)} ); }
when what was effective / needed was:
var img = require("heatshrink").decompress(atob("...")); function d() { g.drawImage(img, 80, 80, {scale:3, rotate:radians(course)} ); }
@HughB 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.
I had a bit of code that was repeatedly doing:
when what was effective / needed was: