diff options
author | Bill Richardson <wfrichar@chromium.org> | 2014-10-14 11:13:11 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-10-15 18:22:33 +0000 |
commit | 8fc80e86e4aa90dc88064edf135f6ccae374e647 (patch) | |
tree | 0928d1d234a1cb36352e36a9625ee1ed4f6ac351 /extra | |
parent | 9a2afe9f78f04bce8e74aa0d04be1623d14e899e (diff) | |
download | chrome-ec-8fc80e86e4aa90dc88064edf135f6ccae374e647.tar.gz |
lightbar: bring the TAP sequence in gradually
With only four LED segments, it's confusing to indicate a power
percentage by dimming the top segment unless you can see the
indicator smoothly ramping up from all-off. This does that.
Kind of pretty, if I say so myself.
BUG=chrome-os-partner:29041
BRANCH=ToT, Samus
TEST=make buildall
Run "ectool lightbar demo on", then press the T key to invoke the
pattern and the arrow keys to fake the charge state.
Change-Id: Ib6a56aea56078b8c1fc9edddda469d7f41735ff7
Signed-off-by: Bill Richardson <wfrichar@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/223300
Reviewed-by: Alec Berg <alecaberg@chromium.org>
Diffstat (limited to 'extra')
-rw-r--r-- | extra/lightbar/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/extra/lightbar/main.c b/extra/lightbar/main.c index a0da1a28ba..897a58d518 100644 --- a/extra/lightbar/main.c +++ b/extra/lightbar/main.c @@ -209,6 +209,7 @@ int lb_read_params_from_file(const char *filename, READ(1); p->s3_ramp_up = val[0]; READ(1); p->s3_ramp_down = val[0]; READ(1); p->tap_tick_delay = val[0]; + READ(1); p->tap_gate_delay = val[0]; READ(1); p->tap_display_time = val[0]; READ(1); p->tap_pct_red = val[0]; |