LVGL - How to save INT values when power cycling

LVGL 8 how to save variable during a power cycle

ESP32 with built in screen 480x320 LVGL 8 TFT-eSPI

I have searched this group and the web, may be i am not using the correct terms?

I am using EEZ-Studio with FLOW. I have it working with Arduino. I have 4 screens, backgrounds, images all showing.

I would like to save some Intergers when the screen powers off and have them show on the screen when powered back on. The INT can change via user imput.

Very new to this, but having fun when not pulling my hair out.

Thanks Andy

1 Like

Welcome Andy,

This is not an LVGL related question per se but you need to store these variables in memory that does not get erased on power-down

I do not know what exact STM32 microcontroller you have but if you are lucky it already has some sort of external flash memory where you may store these variables instead. As I said this is not really a question that has to do with LVGL at all. Perhaps you can ask on the STM forums if they exist.

Kind regards

As said by @Tinus this is a hardware (esp32) related question, you can get more info about saving in the NVS (non volatile storage) in this page of the idf.