diff options
author | Bill Richardson <wfrichar@chromium.org> | 2014-04-16 16:10:05 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-05-15 05:20:14 +0000 |
commit | c46f569a39210c5ecc7f2f767b6a77c9554f3d73 (patch) | |
tree | 8d5544c243b4f305706e448013f31bba61588679 /include/lightbar.h | |
parent | 53eb009d52fe82409784dfa6f079d45e7a2339b5 (diff) | |
download | chrome-ec-c46f569a39210c5ecc7f2f767b6a77c9554f3d73.tar.gz |
Add standalone lightbar simulation tool
This adds an "extra/" directory to hold various experiments and optional
programs. With this change, we add a tool that can simulate the lightbar
behavior on the build machine. That can be used to experment with variations
in the lightbar pattern code without needing to reflash a Pixel with a new
EC to see the effect.
There is no functional change to the EC code, just a couple of #ifdefs to
allow common/lightbar.c to be compiled separately from the EC.
BUG=none
BRANCH=ToT
TEST=make buildall -j
cd extra
make
./lightbar
You may need to install the libxcb1-dev package on your build machine.
Change-Id: I847ce7ea97cae792b1de1b91f488819e873b6555
Signed-off-by: Bill Richardson <wfrichar@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/199883
Diffstat (limited to 'include/lightbar.h')
-rw-r--r-- | include/lightbar.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/lightbar.h b/include/lightbar.h index 4f284a43b6..0d143a2e8a 100644 --- a/include/lightbar.h +++ b/include/lightbar.h @@ -26,6 +26,7 @@ void lightbar_sequence(enum lightbar_sequence s); /* External stuff */ /* These are used for demo purposes */ +#define DEMO_MODE_DEFAULT 0 extern void demo_battery_level(int inc); extern void demo_is_charging(int ischarge); extern void demo_brightness(int inc); |