Arduino Storing in eeprom only when value changes

How to store a value in eeprom only when a value is different from its previous value

use EEPROM.update()

2 Likes

Or EEPROM.put() which uses EEPROM.update() under the hood. See https://docs.arduino.cc/learn/built-in-libraries/eeprom/

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.