add configurable LED duty cycle to control brightness and save power
store learned value in eeprom

so it is still there at switch-on