Saving a long in your arduino non volatile memory

Hi, I could use some help

I am trying to make an odometer with arduino, i have the code and the program works but I need to store the mileage in a way that it doesn't reset when i turn the arduino back off. I have been looking up some information and found the EEPROM memory but that only seems to work for values from 0 to 255, is it possible to store a long on the arduino? Maybe with another kind of memory?

Thx for your help :slight_smile:

Take a look at the EEPROM library reference page, and the put and get methods.