write settings to EEPROM