is anyone tried to write or read from Gr-Kaede EEPROM, i am facing some problem in that, please suggest.. I am writing single byte and reading back, code work fine just after dump, now if i disconnect and connect board code is not working as intended, it stucked somewhere in EEPROM.write() routine. Please find the code and output log below - Sketch/Code : #include Arduino.h #include "HardwareSerial.h" #include "EEPROM.h" void setup() { unsigned char WriteByte=25,ReadByte=0; pinMode(PIN_LED0,OUTPUT); Serial.begin(9600); delay(1000); Serial.println("Writing..."); EEPROM.write(0,WriteByte); delay(500); Serial.print("you wrote : "); Serial.println(WriteByte); Serial.println("Reading..."); ReadByte = EEPROM.read(0); delay(500); Serial.print("you read :"); Serial.println(ReadByte); digitalWrite(PIN_LED0, 1); } void loop() { //do nothing } Output/Log : a.)Just after code dump in the board - Writing... you wrote : 25 Reading... you read :25 b.) After disconnect and reconnect board (Power off-on) : Writing...
↧