From 25641de4ae561c2a0c91c577bf302a73bc828c21 Mon Sep 17 00:00:00 2001 From: FPA-LowellTroyer <165727566+FPA-LowellTroyer@users.noreply.github.com> Date: Fri, 6 Jun 2025 13:43:51 +1200 Subject: [PATCH] Update eeprom.md 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) --- .../02.hero/boards/uno-r4-minima/tutorials/eeprom/eeprom.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/hardware/02.hero/boards/uno-r4-minima/tutorials/eeprom/eeprom.md b/content/hardware/02.hero/boards/uno-r4-minima/tutorials/eeprom/eeprom.md index f8f8e8c11d..cf50eab98b 100644 --- a/content/hardware/02.hero/boards/uno-r4-minima/tutorials/eeprom/eeprom.md +++ b/content/hardware/02.hero/boards/uno-r4-minima/tutorials/eeprom/eeprom.md @@ -57,7 +57,7 @@ int addr = 0; byte value = 100; void setup() { - EEPROM.write(addr, val); + EEPROM.write(addr, value); } void loop(){ } @@ -81,7 +81,7 @@ void setup() { } Serial.print("Address 0: "); - Serial.println(addr); + Serial.println(value); } void loop() {