8000 Update eeprom.md (#2528) · arduino/docs-content@c9e80d3 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit c9e80d3

Browse files
Update eeprom.md (#2528)
Changed values in both examples to function as intended Example1 val -> value (no longer gives error) Example2 addr -> value (prints the correct variable instead of the address)
1 parent b45d451 commit c9e80d3

File tree

1 file changed

+2
-2
lines changed
  • content/hardware/02.hero/boards/uno-r4-minima/tutorials/eeprom

1 file changed

+2
-2
lines changed

content/hardware/02.hero/boards/uno-r4-minima/tutorials/eeprom/eeprom.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ int addr = 0;
5757
byte value = 100;
5858
5959
void setup() {
60-
EEPROM.write(addr, val);
60+
EEPROM.write(addr, value);
6161
}
6262
void loop(){
6363
}
@@ -81,7 +81,7 @@ void setup() {
8181
}
8282
8383
Serial.print("Address 0: ");
84-
Serial.println(addr);
84+
Serial.println(value);
8585
}
8686
8787
void loop() {

0 commit comments

Comments
 (0)
0