You are reading a single comment by @fanoush and its replies. Click here to read the full conversation.
  • something like

    function accCoords(){
      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.


Avatar for fanoush @fanoush started