Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileSystem access in TypeScript #6040

Open
lobodpav opened this issue Dec 14, 2024 · 0 comments
Open

FileSystem access in TypeScript #6040

lobodpav opened this issue Dec 14, 2024 · 0 comments

Comments

@lobodpav
Copy link

Intro

Micro:bit is an amazing platform. The possibility to write programs in TypeScript that are converted to native code as opposed to being interpreted (MicroPython), is great.

There is one thing that I lack a lot - the possibility to persist data.

From what I've read, there is a MicroBitStorage component (and MicroBitFileSystem in the micro:bit v2 API), that allows exactly what I'm after, but in C++. The TypeScript API lacks both, unfortunately.

The solution

A key:value store API in TypeScript would be perfectly sufficient, to allow for persistent program state between micro:bit restarts.

Alternatives

External data storage (if that's even possible) would be very impractical, as it would require additional hardware, more power, and also would consume a lot of space when fitted into 3D printed cases for outdoor (or even indoor) projects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant