History log of /device/samsung/manta/liblights/lights.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
1a6deeae8a0a5cdaedbe9a3bbcb4443fe4428b79 14-Sep-2012 Paul Eastham <eastham@google.com> manta: liblights: add ramp up/down

In this driver, LED on time = ramp up/down time + on time, so remove ramp
time from the on time provided by the framework.

Change-Id: Iacf958adb202ada626af2370f6301c1b4f32b526
/device/samsung/manta/liblights/lights.c
cf99437586432c7cd8faf8c9357953d6c54bfa93 07-Jul-2012 Veeren Mandalia <v.mandalia@sta.samsung.com> liblights: LED HAL for AS3668 LED

To turn LED OFF:
Set flashOnMS to 0
OR set the ARGB color input with A = 0
OR set the ARGB color input with R=G=B = 0

To turn LED ON:
Set flashOnMS > 0 and flashOffMS to 0

To make LED BLINK:
Set flashOnMS > 0 and flashOffMS > 0

ARGB is converted to RGBW: W = min(R,G,B). {R,G,B} = {R,G,B} - W
flashOnMS & flashOffMS must be positive values

AS3668 LED is controlled through sysfs as follows:
Slope up/down are written every time.
To turn LED OFF, 0 is written to brightness.
To turn LED ON, a RGBW color value is written to color, then 255 is written to
brightness
To make LED BLINK, "timer" is written to trigger. Then color, brightness, and delay on/off are written.

Change-Id: Id5cff5db8bcb4a3ad43796ec1f239c7b530ad2c5
Signed-off-by: Veeren Mandalia <v.mandalia@sta.samsung.com>
/device/samsung/manta/liblights/lights.c
ebf2cdfaca5af70ba5ce08c0dae5efacffb5f6ff 12-Mar-2012 Colin Cross <ccross@android.com> manta: add liblights for backlight

Adds an initial liblights implementation that only supports the
backlight.

Change-Id: I6995602249922f88ac129ac6a02039982ab6de85
/device/samsung/manta/liblights/lights.c