onevent timer0 #Body color pulse led_pulse = led_pulse + 1 if led_pulse > 0 then call leds.top(0, led_pulse, 0) if led_pulse > 40 then led_pulse = -128 end else temp=-led_pulse/4 call leds.top(0, temp, 0) end