UIFlow Guide
Write a variable to EEPROM and display it on the screen.
from m5stack import *
from m5stack_ui import *
from uiflow import *
import nvs
screen = M5Screen()
screen.clean_screen()
screen.set_screen_bg_color(0xFFFFFF)
label0 = M5Label('label0', x=137, y=88, color=0x000, font=FONT_MONT_14, parent=None)
nvs.write(str('q'), '1')
while True:
label0.set_text(str(nvs.read_str('q')))
wait_ms(2)
nvs.write(str(''), '')
str(nvs.read_str('q'))
str(nvs.read_int('q'))