function accCoords(){
"ram"
D23.set()
var coords=Int8Array(fc.send([0x82,0,0,0,0,0,0],D18).buffer,2);
return ({x:coords[0],y:coords[2],z:coords[4]});
}
should work if you build with 'DEFINES += -DSPIFLASH_SHARED_SPI'
that define allows Espruino to recover reading from SPI flash when you pull its CS ping high via D23.set(), "ram" would not be needed if the code was in internal flash.
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.
something like
should work if you build with
'DEFINES += -DSPIFLASH_SHARED_SPI'
that define allows Espruino to recover reading from SPI flash when you pull its CS ping high via
D23.set()
, "ram" would not be needed if the code was in internal flash.