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

    Read from EEPROM hangs

    Scheduled Pinned Locked Moved UIFlow
    3 Posts 2 Posters 2.2k Views 2 Watching
    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.
    • J Offline
      JeffDG
      last edited by

      I have a program that reads a key from EEPROM. I've written a value to the key, but whenever I try to read it, it just hands the entire sketch.

      Here's the Python code that is running:
      def btn_save_magic_number_pressed():
      speaker.playTone(523, 2, volume=5)
      nvs.write(str('magic_number'), track_magic_number)
      speaker.playTone(262, 2, volume=5)
      label0.set_text(str(int((nvs.read_str('magic_number')))))
      speaker.playTone(131, 2, volume=5)
      pass

      I get the first two tones played (indicating it has written the EEPROM key), but the third never plays, and the label value never changes.

      I have tried other code to read the EEPROM, they always hang.

      1 Reply Last reply Reply Quote 0
      • P Offline
        pandian.nano
        last edited by

        @JeffDG Hi, Bug fixed, this feature is supported in the next firmware version(v1.12.5)

        1 Reply Last reply Reply Quote 0
        • J Offline
          JeffDG
          last edited by

          Sounds good!

          When is 1.12.5 expected to be available?

          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