• In the console, enter Flash.getFree(); and you will get back a list of objects for each free page in Espruino Flash. Each object has an address where the free page starts, and a size information about how many bytes the page contains. With that information you know where you can write without running into problems such as overwriting Espruino code and bricking your device.

    Note though, that this may change with an any update or change of the firmware. Therefore, before you update, read the data back, store it somewhere, do an update of Espruino, then get the free pages again, adjust your writing/reading positions of the Flash EEPROM if needed, and load the data back into Espruino.

About

Avatar for allObjects @allObjects started