Search found 85 matches

by Duhjoker
Sun Feb 11, 2018 7:42 pm
Forum: ESP32 Arduino
Topic: Saving and writing to eeprom
Replies: 25
Views: 31100

Re: Saving and writing to eeprom

Uhhh no. Should that be in save or load or both?

EDIT::::

adding commit to the save did the trick! Thank you!!!!
by Duhjoker
Sun Feb 11, 2018 6:02 am
Forum: ESP32 Arduino
Topic: Saving and writing to eeprom
Replies: 25
Views: 31100

Re: Saving and writing to eeprom

Almost there..... I can save and load the game as long as the console is on. If I turn the console off and then repower it and try to load I get black screen. What could cause the eeprom to lose its data after powering off. Heres my latest code.... struct Player { int player_x; int player_y; int w; ...
by Duhjoker
Sat Feb 10, 2018 12:10 am
Forum: ESP32 Arduino
Topic: Saving and writing to eeprom
Replies: 25
Views: 31100

Re: Saving and writing to eeprom

ok so I reset my code back to using put get and checkload. Then I told the save and load to print the random number in the serial monitor and when loading. I saved the game then turned off. when I turn the game back on it puts out a black screen that the player can move around the boarders too. But ...
by Duhjoker
Fri Feb 09, 2018 11:08 pm
Forum: ESP32 Arduino
Topic: Saving and writing to eeprom
Replies: 25
Views: 31100

Re: Saving and writing to eeprom

Sorry but I asked days ago and no one answered. So like this..... byte saveKey = 121; void save() { EEPROM.put(0, saveKey); EEPROM.put(1, player); Serial.print("saved"); } bool checkLoad() { byte nr; EEPROM.get(0, nr); Serial.print("checkload"); return (nr == saveKey); } void load() { EEPROM.get(1, ...
by Duhjoker
Fri Feb 09, 2018 10:32 pm
Forum: ESP32 Arduino
Topic: Saving and writing to eeprom
Replies: 25
Views: 31100

Saving and writing to eeprom

hi guys I'm trying to save a player structure for a game I'm building to eeprom so I can retrieve it later. the esp32/Arduino library is different from the Arduino library so I'm having some problems. ive got the address part down I think but its giving me a problem with the value which should be th...
by Duhjoker
Fri Feb 09, 2018 3:30 am
Forum: ESP32 Arduino
Topic: Read EEPROM sketch?
Replies: 1
Views: 1487

Re: Read EEPROM sketch?

so am I to assume thayt no one knows or that there isn't a sketch like it says there is.

Also how long is an integer? Esp8266 is 4 bytes.
by Duhjoker
Tue Feb 06, 2018 3:26 am
Forum: ESP32 Arduino
Topic: Read EEPROM sketch?
Replies: 1
Views: 1487

Read EEPROM sketch?

hi guys


I'm trying to save information to eeprom. The library example includes how to write to eeprom but says that theres another sketch to read from eeprom. But there is no sketch that I can find in the ESP32 library. Where can I find the info for reading and loading it?
by Duhjoker
Tue Jan 16, 2018 11:09 pm
Forum: ESP-IDF
Topic: Cant finish IDF installation win 10 64
Replies: 8
Views: 4469

Re: Cant finish IDF installation win 10 64

ok did I miss a step or is it my command line skills still out of whack

Go to advanced search