Well, the string in fb is actually just a special variable type that references external flash memory. The flash memory isn't memory-mapped by the hardware so it's magically all handled in software.
However E.toString should fix that by converting it to a big flat string - assuming there's enough RAM.
To try and debug this, I'd:
output the value returned by E.getAddressOf
maybe use trace(fb) and so on to see what the variable really is
But as far as I can see what you have there looks good
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.
Well, the string in
fb
is actually just a special variable type that references external flash memory. The flash memory isn't memory-mapped by the hardware so it's magically all handled in software.However
E.toString
should fix that by converting it to a big flat string - assuming there's enough RAM.To try and debug this, I'd:
E.getAddressOf
trace(fb)
and so on to see what the variable really isBut as far as I can see what you have there looks good