Page 1 of 1

Persistent value storage.

Posted: Sat Nov 21, 2020 2:58 pm
by AJB2K3
Sorry is this goes way beyond a Idiotic question but I cant for the life of me.
Is there anywhere on an esp32 pico D4 to store values that will not be deleted or lost when the primary cores are powered down of the esp32 is powered off?

Re: Persistent value storage.

Posted: Sat Nov 21, 2020 4:50 pm
by Roberthh
The Pico D4 has embedded flash memory, which is persistent. That is for instance used for the firmware itself and the file system of MicroPython.

Re: Persistent value storage.

Posted: Sat Nov 21, 2020 5:05 pm
by AJB2K3
Thank you for taking the time to answer.

Is there away to write a value to it in micropython?
Looking to store temperate say 36.60 and then put the esp32 to sleep and then wake up after some time and only change the value if it changes significantly before writing to an e-Ink screen.

Re: Persistent value storage.

Posted: Sat Nov 21, 2020 5:34 pm
by Roberthh
For the file system you can use the usual Python file operations. Just look for it in any Python lesson.

Re: Persistent value storage.

Posted: Sat Nov 21, 2020 7:35 pm
by AJB2K3
Roberthh wrote:
Sat Nov 21, 2020 5:34 pm
For the file system you can use the usual Python file operations. Just look for it in any Python lesson.
Again, I would just like to say thank you very much.
And thank you for the pointer where to look.
I wish there was a reputation function on this forum so I could +1 you rep.
Thanks mate