diff options
author | Eric Caruso <ejcaruso@chromium.org> | 2014-10-09 13:06:22 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-10-15 18:22:37 +0000 |
commit | bcc5057ad30a1252e7ae994dee58a689c210e302 (patch) | |
tree | 0a54fe090b65f731ce31adb6e27a130c5b1669f3 /extra/lightbar/programs/red-green-blink.lbs | |
parent | 8fc80e86e4aa90dc88064edf135f6ccae374e647 (diff) | |
download | chrome-ec-bcc5057ad30a1252e7ae994dee58a689c210e302.tar.gz |
lightbar: interpreter additions to encode other patterns
Makes a significant encoding change to existing opcodes and
adds several opcodes to allow for encoding the more complicated
patterns that we have on the lightbar (S0, etc.) as well as
condense the ones we technically could encode but couldn't
fit in the 192-byte footprint allotted to us (KONAMI).
We need this to remove sequences from the EC code.
BUG=chrome-os-partner:32203
BRANCH=ToT
TEST=run test programs on hardware and lightbar simulator
Signed-off-by: Eric Caruso <ejcaruso@chromium.org>
Change-Id: I12fe908d3a43a924aa39f24ad66adbe53f7f38e1
Reviewed-on: https://chromium-review.googlesource.com/222949
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'extra/lightbar/programs/red-green-blink.lbs')
-rw-r--r-- | extra/lightbar/programs/red-green-blink.lbs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/extra/lightbar/programs/red-green-blink.lbs b/extra/lightbar/programs/red-green-blink.lbs new file mode 100644 index 0000000000..d520b739bb --- /dev/null +++ b/extra/lightbar/programs/red-green-blink.lbs @@ -0,0 +1,14 @@ +# Blinks red and green with 1 second pauses. + set.rgb {0,1,2,3}.beg 0xff 0x00 0x00 + set.rgb {0,1,2,3}.end 0x00 0xff 0x00 + delay.w 250000 + delay.r 0 + cycle.1 + wait + ramp.1 + wait + cycle.1 + wait + ramp.1 + wait + halt |