I probably do it like pedja089, but used the eeprom to save the setting!