store a single var in flash and load at start #5007
Unanswered
espruino-discuss
asked this question in
Pico / Wifi / Original Espruino
Replies: 1 comment
-
Posted at 2021-09-12 by Robin Sat 2021.09.11 Hi @mrbbp has the example at been tried? Posted at 2021-09-12 by Robin Sat 2021.09.11 Simple sample from above link:
Add a counter:
Now, type
Reset device or power off / power on, then type in L-Hand console of WebIDE
Output:
Posted at 2021-09-12 by @MaBecker check Combining options https://www.espruino.com/Saving Posted at 2021-09-12 by Mrbbp Thanks @robin, It works now... thanks again. Regards |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2021-09-11 by Mrbbp
Hello,
I'm looking for to store a var in a permanent way (power off) and load at start (power on)
i saw that @gfwilliams implement a way to store data since 2v05, but the example code is for log datas (implementative way) and it seems a beat complex just for store a counter var.
have you a simple example to implement a counter (with a long type) storage over power-down?
I've tried
but it does not works!
what i'm doing wrong?
thanks for your time.
Beta Was this translation helpful? Give feedback.
All reactions