I've just fixed a few big issues with the online compiler, the main ones being:
this
You still can't do stuff like:
So you're a bit limited, but what you can now do is stuff like:
function setPixel(x,y,c){ "compiled"; ce.reset(); spi.write(0x2A,dc); spi.write(x>>8,x,(x+1)>>8,x+1); spi.write(0x2B,dc); spi.write(y>>8,y,(y+1)>>8,y+1); spi.write(0x2C,dc); spi.write(c>>8,c); ce.set(); }
So hopefully it can provide some nice speed improvements where IO is concerned.
I'll update the documentation on it later on.
@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.
I've just fixed a few big issues with the online compiler, the main ones being:
this
in function callsYou still can't do stuff like:
So you're a bit limited, but what you can now do is stuff like:
So hopefully it can provide some nice speed improvements where IO is concerned.
I'll update the documentation on it later on.