Files
OpenCellular/extra/lightbar/programs/konami.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

90 lines
1014 B
Plaintext

# Konami code easter egg
delay.w 100000
set.rgb {1,2}.end 0xff 0xff 0x00
ramp.1
wait
cycle.1
wait
ramp.1
wait
cycle.1
wait
set.rgb {1,2}.end 0x00 0x00 0x00
set.1 {0,3}.end.b 0xff
ramp.1
wait
cycle.1
wait
ramp.1
wait
cycle.1
wait
set.1 {0,3}.end.b 0x00
set.1 {0,1}.end.r 0xff
ramp.1
wait
cycle.1
wait
set.1 {0,1}.end.r 0x00
set.1 {2,3}.end.g 0xff
ramp.1
wait
cycle.1
wait
set.1 {2,3}.end.g 0x00
set.1 {0,1}.end.r 0xff
ramp.1
wait
cycle.1
wait
set.1 {0,1}.end.r 0x00
set.1 {2,3}.end.g 0xff
ramp.1
wait
cycle.1
wait
set.1 {2,3}.end.g 0x00
set.rgb {0,2}.end 0x00 0xff 0xff
ramp.1
wait
cycle.1
wait
delay.w 50000
wait
set.rgb {0,2}.end 0x00 0x00 0x00
set.rgb {1,3}.end 0xff 0x00 0xff
ramp.1
wait
wait
cycle.1
wait
delay.w 100000
wait
wait
set.rgb {0,1,2,3}.end 0xff 0xff 0xff
ramp.1
wait
cycle.1
wait
ramp.1
wait
cycle.1
wait
ramp.1
wait
cycle.1
wait
ramp.1
wait
cycle.1
wait
ramp.1
wait
cycle.1
wait
ramp.1
wait
cycle.1
wait
halt