Finally final lightbar tweaks. Really. I think...
Finally final lightbar tweaks. Really. I think...

This is hopefully the finally final tweak to the lightbar behavior. It does
this:

* When booting or awakening from sleep, Google colors pulse briefly.
* When the chromebook is fully on, lightbar is dim blue. Every 3-5 seconds,
  a pulse of brighter blue sweeps across.
* On battery, the lightbar is not quite as bright, and the sweep goes in the
  other direction and is slightly slower. If the battery charge drops below
  10%, the lightbar changes from blue to red (but only on battery, not AC).
* When going to sleep (close lid while logged in), lightbar fades to black,
  then pulses Google colors, then off.
* While asleep, lightbar does nothing, UNLESS on battery and battery charge
  is under 10%. Then it pulses red every 5-8 seconds.
* When shutting off, it just goes black with no special effects.

Other than the slight dimming on battery power, there is no ambient light or
dynamic brightness control.

BUG=chrome-os-partner:8039
BRANCH=Link
TEST=manual

Turn it on, watch the blinky lights. Log in, close the lid, open the lid.
Connect/disconnect AC. The lights should change as described above. Ta Da.

Change-Id: Id174a452639decc4b5eefb9e21b28cf3643529f5
Signed-off-by: Bill Richardson <129945214b1d548d8e49b6c29c43094f8c78057f@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/35742
Reviewed-by: Randall Spangler <62698fdbb84d1779579ee80c3f39fac22017e5bc@chromium.org>

alterapraxisptyltd/chromium-ec,eatbyte/chromium-ec,thehobn/ec,eatbyte/chromium-ec,md5555/ec,eatbyte/chromium-ec,md5555/ec,gelraen/cros-ec,longsleep/ec,akappy7/ChromeOS_EC_LED_Diagnostics,alterapraxisptyltd/chromium-ec,mtk09422/chromiumos-platform-ec,akappy7/ChromeOS_EC_LED_Diagnostics,coreboot/chrome-ec,thehobn/ec,coreboot/chrome-ec,md5555/ec,coreboot/chrome-ec,fourier49/BIZ_EC,akappy7/ChromeOS_EC_LED_Diagnostics,alterapraxisptyltd/chromium-ec,mtk09422/chromiumos-platform-ec,fourier49/BIZ_EC,coreboot/chrome-ec,fourier49/BZ_DEV_EC,fourier49/BZ_DEV_EC,longsleep/ec,md5555/ec,fourier49/BZ_DEV_EC,fourier49/BZ_DEV_EC,thehobn/ec,coreboot/chrome-ec,longsleep/ec,gelraen/cros-ec,akappy7/ChromeOS_EC_LED_Diagnostics,eatbyte/chromium-ec,gelraen/cros-ec,gelraen/cros-ec,mtk09422/chromiumos-platform-ec,coreboot/chrome-ec,longsleep/ec,fourier49/BIZ_EC,alterapraxisptyltd/chromium-ec,mtk09422/chromiumos-platform-ec,fourier49/BIZ_EC,thehobn/ec,akappy7/ChromeOS_EC_LED_Diagnostics