More about eeprom.begin() and commit()

Hello again,

Thank you very much for your explanations, they clarify a lot.

If begin is mandatory, commit is surely useless:

#include <EEPROM.h>

void setup() {
  // put your setup code here, to run once:
  Serial.begin(115200);
  delay(1000);
  Serial.println("Hello :)");
  EEPROM.begin(8);
  EEPROM.write(3, 1);
  Serial.print("first read: "); Serial.println(EEPROM.read(3));
  EEPROM.write(3, 3);
  Serial.print("second read: "); Serial.println(EEPROM.read(3));
  
}

void loop() {
  // put your main code here, to run repeatedly:

}

Output:

Hello :slight_smile:
first read: 1
second read: 3

Output without begin:

Hello :slight_smile:
first read: 0
second read: 0

Best regards

image