From e77ae5935b2e69acad011aeaa2227e85983400d8 Mon Sep 17 00:00:00 2001 From: klassents Date: Tue, 15 Oct 2024 13:43:22 +0700 Subject: [PATCH] =?UTF-8?q?=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=D0=B0=20=D0=BD=D0=B5=D1=82=D0=BE=D1=87=D0=BD=D0=BE=D1=81?= =?UTF-8?q?=D1=82=D1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libraries/EEPROM/examples/eeprom_update/eeprom_update.ino | 2 +- libraries/EEPROM/examples/eeprom_write/eeprom_write.ino | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/EEPROM/examples/eeprom_update/eeprom_update.ino b/libraries/EEPROM/examples/eeprom_update/eeprom_update.ino index 93ea2b4..8ca0fe9 100644 --- a/libraries/EEPROM/examples/eeprom_update/eeprom_update.ino +++ b/libraries/EEPROM/examples/eeprom_update/eeprom_update.ino @@ -24,7 +24,7 @@ void loop() { 0 to 1023 and each byte of the EEPROM can only hold a value from 0 to 255. ***/ - int val = analogRead(0) / 16; + int val = analogRead(0) / 4; /*** Update the particular EEPROM cell. diff --git a/libraries/EEPROM/examples/eeprom_write/eeprom_write.ino b/libraries/EEPROM/examples/eeprom_write/eeprom_write.ino index 2b23347..668fb64 100644 --- a/libraries/EEPROM/examples/eeprom_write/eeprom_write.ino +++ b/libraries/EEPROM/examples/eeprom_write/eeprom_write.ino @@ -22,7 +22,7 @@ void loop() { value from 0 to 255. ***/ - int val = analogRead(0) / 16; + int val = analogRead(0) / 4; /*** Write the value to the appropriate byte of the EEPROM.