Adding code to PWM LED dimming

aarg:
This program uses very convoluted logic. I would not mess with it at all. What they do with foo[] is just criminal. :slight_smile:

That does seem like an excessive amount of code just to dim lights over a 30 minute period. And that's coming from someone who's as green as a tobacco chewing 12 year old when it comes to arduino coding.