moorescloud/holideck — pull request #7 by cheshrkat (2014-08-26 13:21:25+00:00)
Title: Fixes for countdown app

Two issues fixed:
1) red lights no longer stutter during the red flashing phase of countdown
2) red lights turn off completely after countdown completes

Details:
1) gradients could not complete within 1sec, causing clashing gradients. Fixed by pulsing between bright red and a darker red, rather than full black; and reducing the number of steps.

2) gradients need at least half as many steps as the brightest value to turn off to black/off (I've commented with details and test cases at http://support.moorescloud.com/2013/12/known-bugs/). Fix here was to increase the final gradient to 128 steps. This also differentiates the countdown pulses from the last fadeout.