I want to store an integer using FlashEEPROM. However, only the lowest 8 bits are stored:
> var f = new (require("FlashEEPROM"))(); > f.write(1, 1025); > f.read(1); =new Uint8Array([1])
E.toUint8Array() also doesn't help:
E.toUint8Array(1025) =new Uint8Array([1])
@avanc 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 want to store an integer using FlashEEPROM. However, only the lowest 8 bits are stored:
E.toUint8Array() also doesn't help: