# Saving data when Power is lost

**URL:** https://forum.makecode.com/t/saving-data-when-power-is-lost/22303
**Category:** micro:bit
**Created:** [September 6, 2023, 6:34pm UTC](https://forum.makecode.com/t/saving-data-when-power-is-lost/22303 "2023-09-06T18:34:37Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![bsiever](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bsiever/32/1032_2.png) [@bsiever](https://forum.makecode.com/u/bsiever)
#### Post date: [September 6, 2023, 10:16pm UTC](https://forum.makecode.com/t/saving-data-when-power-is-lost/22303/2 "2023-09-06T22:16:31Z")

</div>

Hi,

Following another forum member’s request (@mwest226 's request here: [Pull CPP files (Online makecode.microbit.org) - #4 by bsiever](https://forum.makecode.com/t/pull-cpp-files-online-makecode-microbit-org/19532/4)), I did create an extension with blocks that can be used to save and restore text from flash: [https://github.com/bsiever/microbit-pxt-flashstorage](https://github.com/bsiever/microbit-pxt-flashstorage) .

Here’s an example using it: [https://makecode.microbit.org/S34893-47565-25042-23479](https://makecode.microbit.org/S34893-47565-25042-23479) (I just put this example together and haven’t tested it on a micro:bit yet).

Bill

---

_[View the full topic](https://forum.makecode.com/t/saving-data-when-power-is-lost/22303)._
