summaryrefslogtreecommitdiff
path: root/include/battery.h
diff options
context:
space:
mode:
authorBill Richardson <wfrichar@chromium.org>2012-09-21 16:36:05 -0700
committerGerrit <chrome-bot@google.com>2012-09-24 10:56:50 -0700
commit3c4f66648d74fea0937478042c26c4e729d47e58 (patch)
tree925ce1917e62b01b298733c973b49185f4cea0cc /include/battery.h
parentef71b1a3e56efb86b888edc6c04240f3eb970bd2 (diff)
downloadchrome-ec-3c4f66648d74fea0937478042c26c4e729d47e58.tar.gz
Use two-color lightbar scheme, with KB backlight for brightness
Yet another set of tweaks to the lightbar patterns: At Startup or wake from sleep, Google colors cycle in. While running, > 25% power level in the battery: All blue, in a breathing effect (cycle up and down 30%). While running, <= 25% power level in battery: Same as above, but with red Shutting down, or going into sleep: Cycle out the Google colors (Note: the effect is only visible for S0->S3, because shutting down kills power to the lightbar before we can react). While sleeping: Similar to now, but only using Blue and red for battery indication as above. The EC doesn't have access to the ALS, so we use the keyboard backlight to control the lightbar brightness instead: If keyboard backlight is OFF (which it is when ambient is bright), use max brightness for lightbar. If keyboard backlight is ON, use keyboard backlight brightness. BUG=chrome-os-partner:13870 BRANCH=Link TEST=none This is an aesthetic change. Nothing to test, only artisitic criticism. Change-Id: Ib0b98eef18984945a83e988588c225025c4e8e52 Signed-off-by: Bill Richardson <wfrichar@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/33824 Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'include/battery.h')
-rw-r--r--include/battery.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/battery.h b/include/battery.h
index 9f3cb4cad7..f647a29bc0 100644
--- a/include/battery.h
+++ b/include/battery.h
@@ -21,10 +21,10 @@
/* Precharge only when state of charge is below this level */
#define PRE_CHARGE_THRESHOLD 25
-/* Define the lightbar color thresholds */
+/* Define the lightbar color thresholds, percentage */
#define LIGHTBAR_POWER_THRESHOLD_FULL 99
#define LIGHTBAR_POWER_THRESHOLD_HIGH 40
-#define LIGHTBAR_POWER_THRESHOLD_MEDIUM 10
+#define LIGHTBAR_POWER_THRESHOLD_MEDIUM 25
/* LOW is anything below MEDIUM */
#endif /* __CROS_EC_BATTERY_H */