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

    Read from EEPROM hangs

    UIFlow
    2
    3
    1.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.
    • J
      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
        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
          JeffDG
          last edited by

          Sounds good!

          When is 1.12.5 expected to be available?

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