Files
OpenCellular/extra/lightbar/programs/s3s0.lbs
Eric Caruso bcc5057ad3 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>
2014-10-15 18:22:37 +00:00

12 lines
229 B
Plaintext

# S3S0 sequence: Google color ramp up/down.
set.rgb {0}.end 0x33 0x69 0xe8
set.rgb {1}.end 0xd5 0x0f 0x25
set.rgb {2}.end 0xee 0xb2 0x11
set.rgb {3}.end 0x00 0x99 0x25
delay.r 1250
ramp.1
swap
delay.r 10000
ramp.1
halt