fix for #261 - setting brightness doesn't change the LED brightness immediately

The code now changes the brightness immediately by default. If there are cases when this isn't desirable, an extra optional flag "update" has been added which can be set to `false` to postpone the LED update.