I read it here first...
https://randomnerdtutorials.com/arduino ... led-state/
I wrote like that...
Code: Select all
int a = 0;
int value;
void setup() {
}
void loop() {
value = EEPROM.read(a); //citire eeprom
Serial.print(a);
Serial.print("\t");
Serial.print(value);
Serial.println();
a = a + 1;
if (a == 200)//512
a = 0;
delay(500);
}
================================================
and read 65535 in each location...
After that I tried to write in eeprom ... with the code ..
Code: Select all
int a = 0;//locatie start citire eeprom
int value;
void setup() {
}
void loop() {
EEPROM.write(0, 0);
EEPROM.write(1, 1);
value = EEPROM.read(a); //citire eeprom
Serial.print(a);
Serial.print("\t");
Serial.print(value);
Serial.println();
a = a + 1;
if (a == 10)//512
a = 0;
delay(500);
}
===================================================
Result..
0 0
1 1
After that I changed the GPS code and everything is OK ...
Thank you again..