summaryrefslogtreecommitdiff
path: root/driver/accel_kionix.c
diff options
context:
space:
mode:
authorDuncan Laurie <dlaurie@google.com>2017-03-13 09:31:13 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-03-13 19:58:51 -0700
commitcdfce3bc83271f1980f96d6b1d3d0567185ecf76 (patch)
tree44c54d275723988979ddfa538f54f1c9ca251b70 /driver/accel_kionix.c
parent35387474a1a03209aee02463ad53e300b4d1d938 (diff)
downloadchrome-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