From 2e0ab7265e3039fee787c2216e0c98d92ea0b49e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arve=20Hj=C3=B8nnev=C3=A5g?= Date: Tue, 1 Nov 2011 19:59:11 -0700 Subject: sensors: Return a calculated lux value instead using the current 8 entry table The light sensor now uses the lux to current formula in the datasheet, I = 10 * log(Ev) uA, and multiplies the result by 4 as an attempt to correct for the glass in front of the sensor. Also update the config_autoBrightnessLevels table so the auto brightness change occurs at the same adc values as before (or close for 7.26 and 94.5 lux). Change-Id: I5a54fda8eca26006671064b7db1e39ba0a5d7889 --- overlay/frameworks/base/core/res/res/values/config.xml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'overlay') diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml index eb71bf5..0bfc868 100644 --- a/overlay/frameworks/base/core/res/res/values/config.xml +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -44,11 +44,11 @@ Must be overridden in platform specific overlays --> - 100 - 200 - 400 - 1000 - 3000 + 7 + 94 + 208 + 458 + 2223