mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-30 02:20:48 +00:00
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>
18 lines
246 B
Plaintext
18 lines
246 B
Plaintext
# S3 sequence: Pulse red on low battery.
|
|
set.rgb {0,1,2,3}.end 0xff 0x00 0x00
|
|
cycle.1
|
|
delay.w 5000000
|
|
L0001: off
|
|
wait
|
|
jcharge L0001
|
|
jbat L0002 L0001
|
|
jump L0001
|
|
L0002: on
|
|
delay.r 1250
|
|
ramp.1
|
|
swap
|
|
delay.r 10000
|
|
ramp.1
|
|
swap
|
|
jump L0001
|