🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Save variables permanent for power cycle

    UIFlow
    2
    4
    3.4k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      mchott
      last edited by

      Is there a way to save a variable value permanent. So after a power cycle I can use this value?

      Currently I have to set the value in the UIflow and flash the AtomMatrix.

      M 1 Reply Last reply Reply Quote 0
      • M
        mchott @mchott
        last edited by

        @mchott I tried several things including EEPROM.

        Is it possible that the EEPROM function on the Atom Matrix simply does not exist? The button B on the side does not exist in UIflow either.

        1 Reply Last reply Reply Quote 0
        • felmueF
          felmue
          last edited by

          Hello @mchott

          EEPROM function works for me - see below. However what I found is that reading a value (after storing it) takes a couple of seconds until the new value is read. Second I found EEPROM read key ... to int doesn't work for me.

          AFAIK there is no button B on M5Atom (lite or Matrix). The button on the side is a hardwired reset button.

          0_1655995620514_UIFlow_M5Atom_EEPROM_20220623.png

          Thanks
          Felix

          GPIO translation table M5Stack / M5Core2
          Information about various M5Stack products.
          Code examples

          M 1 Reply Last reply Reply Quote 0
          • M
            mchott @felmue
            last edited by

            @felmue Super!!!

            The EEPROM seem to have some problems with integer values and fast timing.

            I store my integer now as string and wait until read is finished and it works.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post