Persistent value storage.

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
AJB2K3
Posts: 44
Joined: Wed Mar 06, 2019 5:20 pm
Location: @nd Star on the Right.
Contact:

Persistent value storage.

Post by AJB2K3 » Sat Nov 21, 2020 2:58 pm

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?

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: Persistent value storage.

Post by Roberthh » Sat Nov 21, 2020 4:50 pm

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.

AJB2K3
Posts: 44
Joined: Wed Mar 06, 2019 5:20 pm
Location: @nd Star on the Right.
Contact:

Re: Persistent value storage.

Post by AJB2K3 » Sat Nov 21, 2020 5:05 pm

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.

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: Persistent value storage.

Post by Roberthh » 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.

AJB2K3
Posts: 44
Joined: Wed Mar 06, 2019 5:20 pm
Location: @nd Star on the Right.
Contact:

Re: Persistent value storage.

Post by AJB2K3 » Sat Nov 21, 2020 7:35 pm

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

Post Reply