Add support for fixed time brightness fading

You probably intended this to be an assignment and the result of the assignment used in the `if` condition. I'd be much happier with the following equivalent snippet, though:

```
enabled = enable;
if (enabled) {
   ...
```