added leds decay simulation (copypasted from ticalc1x.c)