Read from EEPROM hangs
-
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)
passI 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.
-
@JeffDG Hi, Bug fixed, this feature is supported in the next firmware version(v1.12.5)
-
Sounds good!
When is 1.12.5 expected to be available?
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