Search found 85 matches
- Thu Feb 15, 2018 7:01 am
- Forum: ESP32 Arduino
- Topic: Saving and writing to eeprom
- Replies: 25
- Views: 65022
Re: Saving and writing to eeprom
Seriously??? I'm not trying to be smart but how am I supposed to write a short program to save and restore with out a reference on how its done??? This is not the first time I have asked. Seems every body clams up the question. Where exactly is the sketch to restore????? Its been a couple days. I wa...
- Tue Feb 13, 2018 2:07 am
- Forum: ESP32 Arduino
- Topic: Saving and writing to eeprom
- Replies: 25
- Views: 65022
Re: Saving and writing to eeprom
That's the problem I don't have an example to show me how to restore from eeprom. The given example is for writing to eeprom with the promise of a different sketch to restore it. I've googled the H out of it. The regular Arduino sketch helps but esp32 does it differently. Its committing to eeprom wh...
- Mon Feb 12, 2018 9:57 pm
- Forum: ESP32 Arduino
- Topic: Saving and writing to eeprom
- Replies: 25
- Views: 65022
Re: Saving and writing to eeprom
Not gonna worry about how many writes and wipes the eeprom can do before burning out. The esp32 is sold at a reasonable rate so I can just replace it if I need to. Though I doubt ill make it to a hundred thousand writes/wipes. Meanwhile I have a couple more structures to save to eeprom. This didn't ...
- Mon Feb 12, 2018 8:31 am
- Forum: ESP32 Arduino
- Topic: Saving and writing to eeprom
- Replies: 25
- Views: 65022
Re: Saving and writing to eeprom
why not save to SD?
- Mon Feb 12, 2018 8:02 am
- Forum: ESP32 Arduino
- Topic: Saving and writing to eeprom
- Replies: 25
- Views: 65022
Re: Saving and writing to eeprom
Sounds like either way is going to burn out something. I honestly thought the esp32's eeprom partition was from flash.
So what would be the best way to store Data for my player and inventory slots?
So what would be the best way to store Data for my player and inventory slots?
- Mon Feb 12, 2018 7:13 am
- Forum: ESP32 Arduino
- Topic: Saving and writing to eeprom
- Replies: 25
- Views: 65022
Re: Saving and writing to eeprom
I'm all for learning something new.... looking at the SPIFFS library and its example but not really understanding it. Theres no notes on the functions.
Why does eeprom only have so many writes?
Where is the data actually being saved in the spiffs example?
Why does eeprom only have so many writes?
Where is the data actually being saved in the spiffs example?
- Mon Feb 12, 2018 7:00 am
- Forum: ESP32 Arduino
- Topic: Saving and writing to eeprom
- Replies: 25
- Views: 65022
Re: Saving and writing to eeprom
It didn't work. Could you link me to the correct spiffs library?
- Mon Feb 12, 2018 6:20 am
- Forum: ESP32 Arduino
- Topic: Saving and writing to eeprom
- Replies: 25
- Views: 65022
Re: Saving and writing to eeprom
ok so if Player uses 9 variables in its structure, all use int, that would be 36 for the size of player. So something like this... void save() { EEPROM.put(0, player); EEPROM.put(36, slots); EEPROM.commit(); Serial.print("saved"); } void load() { EEPROM.get(0, player); EEPROM.get(36, slots); }
- Mon Feb 12, 2018 5:52 am
- Forum: ESP32 Arduino
- Topic: Saving and writing to eeprom
- Replies: 25
- Views: 65022
Re: Saving and writing to eeprom
None taken. I'm still learning to code. I understand some of it. Ive been reading tutorials and the Arduino playground page. But esp32 is a lil different. Is this where I need to know the bits for each variable in the slot structure?
or do I need to define two addresses somehow
or do I need to define two addresses somehow
- Mon Feb 12, 2018 2:18 am
- Forum: ESP32 Arduino
- Topic: Saving and writing to eeprom
- Replies: 25
- Views: 65022
Re: Saving and writing to eeprom
Now I'm having the same problem with slots.... struct CursorE { int cursorE_x; int cursorE_y; int cursor_direction; }; CursorE cursore = { 142, 14, 1}; //////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////...