Accelstepper

The EEPROM bit is easy. Just use EEPROM.put() and EEPROM.get() and you can save and load data of any type, An int would be fine for values up to 10000