summaryrefslogtreecommitdiff
path: root/common/lb_common.c
diff options
context:
space:
mode:
authorBill Richardson <wfrichar@chromium.org>2014-10-21 10:42:22 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-10-22 21:50:39 +0000
commit0907881a3a87b4056c5debf56f64bf59cc3f7175 (patch)
tree4f8b813ccb052fe4f0f053c1965de3dc37bed43b /common/lb_common.c
parente3d01f8870d8bff15a40bae1173cff81c275a99c (diff)
downloadchrome-ec-0907881a3a87b4056c5debf56f64bf59cc3f7175.tar.gz
Calibrated lightbar values for Samus & Ryu
This updates the lightbar params with the values determined in the optic lab. The full-on primary colors are of uniform intensity at the brightness level used by Link. The Google colors provide the closest match to the official color palette (at full brightness) described at https://sites.google.com/a/google.com/brandsite/the-colours BUG=chrome-os-partner:33017 BRANCH=ToT,samus,ryu TEST=manual The calibration and testing was done in the optic lab. You can see the result just by looking at the lightbar. For best results, set the brightness to the max with ectool lightbar brightness ff Change-Id: I1cb64e3c547844adf733cd46bff1256319b4f612 Signed-off-by: Bill Richardson <wfrichar@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/224992
Diffstat (limited to 'common/lb_common.c')
-rw-r--r--common/lb_common.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/common/lb_common.c b/common/lb_common.c
index 6db3d9d445..533ebbfa71 100644
--- a/common/lb_common.c
+++ b/common/lb_common.c
@@ -63,10 +63,13 @@ static inline uint8_t controller_read(int ctrl_num, uint8_t reg)
#define MAX_BLUE 0x67
#endif
#if defined(BOARD_SAMUS) || defined(BOARD_RYU_P2)
-/* Samus uses completely different LEDs, so the numbers are different */
-#define MAX_RED 0x4f
-#define MAX_GREEN 0x55
-#define MAX_BLUE 0x67
+/* Samus uses completely different LEDs, so the numbers are different. The
+ * Samus LEDs can handle much higher currents, but these constants were
+ * calibrated to provide uniform intensity at the level used by Link.
+ * See crosbug.com/p/33017 before making any changes. */
+#define MAX_RED 0x28
+#define MAX_GREEN 0x24
+#define MAX_BLUE 0x34
#endif
#ifdef BOARD_HOST
/* For testing only */