🤖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

    Scheduled Pinned Locked Moved UIFlow
    4 Posts 2 Posters 4.1k Views
    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 Offline
      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 Offline
        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 Offline
          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 Offline
            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

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post