diff options
author | Duncan Laurie <dlaurie@google.com> | 2017-03-13 09:31:13 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-03-13 19:58:51 -0700 |
commit | cdfce3bc83271f1980f96d6b1d3d0567185ecf76 (patch) | |
tree | 44c54d275723988979ddfa538f54f1c9ca251b70 /driver/accel_kionix.c | |
parent | 35387474a1a03209aee02463ad53e300b4d1d938 (diff) | |
download | chrome-ec-cdfce3bc83271f1980f96d6b1d3d0567185ecf76.tar.gz |
eve: Make ectool LED control interface more intuitive
The led_get_brightness_range and led_set_brightness functions are only
used by the led control host command and exercised via ectool for
factory testing.
Currently the ectool inputs must be inverted to get expected behavior:
ectool led power red=100 green=100 blue=20 << blue
Instead we can invert them in the EC to get more intuitive behavior for
the user input values, and use the led_id parameter to split the control
so they can be addressed individually for testing:
ectool led left red=0 green=0 blue=80 << blue
ectool led right red=100 green=13 blue=0 << amber
BUG=b:36150361
BRANCH=none
TEST=Tested manual control of indivual LEDs using ectool
Change-Id: I6551656f3faf26930749d1e9d45a176088c6646c
Signed-off-by: Duncan Laurie <dlaurie@google.com>
Reviewed-on: https://chromium-review.googlesource.com/453303
Reviewed-by: Scott Collyer <scollyer@chromium.org>
Diffstat (limited to 'driver/accel_kionix.c')
0 files changed, 0 insertions, 0 deletions