summaryrefslogtreecommitdiff
path: root/common/keyboard_8042.c
diff options
context:
space:
mode:
authorBill Richardson <wfrichar@chromium.org>2014-09-25 15:13:17 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-09-26 09:21:06 +0000
commitb88866828ffafb8fffb732d11f50f8b473bd4323 (patch)
treeb4be4e71fd1a2d49406d28c6d44662ad57d273ed /common/keyboard_8042.c
parent748848e8a264530a0ed31fc62d11b19a42d11eec (diff)
downloadchrome-ec-b88866828ffafb8fffb732d11f50f8b473bd4323.tar.gz
Add demo_tap() function for lightbar demo mode
BUG=chrome-os-partner:29041 BRANCH=ToT TEST=manual From the host run ectool lightbar demo on Then press the 'T' key. The lightbar should change to indicate the charge state. Fiddle with the arrows to change the pretend battery level and AC presence. Change-Id: I398a829e2e5de5e1a186500aa2ed72c61e71deaa Signed-off-by: Bill Richardson <wfrichar@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/220024 Reviewed-by: Alec Berg <alecaberg@chromium.org>
Diffstat (limited to 'common/keyboard_8042.c')
-rw-r--r--common/keyboard_8042.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/keyboard_8042.c b/common/keyboard_8042.c
index 217bf52339..cf2b5bec94 100644
--- a/common/keyboard_8042.c
+++ b/common/keyboard_8042.c
@@ -876,6 +876,9 @@ static void keyboard_special(uint16_t k)
case 0x0041: /* bright */
demo_brightness(1);
break;
+ case 0x0014: /* T */
+ demo_tap();
+ break;
}
#endif