Flash Storage

I’m wanting to make an OS for the micro:bit because the other 2 that ive used either didnt load onto my micro:bit or needed an external device. so i want to make my own that works with only the board.
1 small problem: i dont know how to read/write to the flash storage so i can save changed variables even when a reset occurs. so can someone help me figure out how to get flash storage working?

You need the Datalogger extension (as seen in the image) to write to the flash storage, but I believe the only way to read it is to plug into a computer and read the data file, or use the Microbit app to see the data live via bluetooth.

One alternative I can offer (though its a bit less conventional, and requires 2 microbits as opposed to 1), is to have a microbit that is always powered (like plugged into a wall or smth), and have the main Microbit (the one with the OS on it), use the radio to send it’s save data to the one that’s plugged in, and have it send the data back on request (and use the Datalogger to save the data, so if you lose power, you can retrieve is and load it back on).

hope that helped :grin: .