From f3b7cf6f6406827fbc1b6df749881f750dd00ab6 Mon Sep 17 00:00:00 2001 From: LuK1337 Date: Fri, 24 Feb 2017 15:42:13 +0100 Subject: [PATCH] msm8976-common: Update liblights header Change-Id: I35a8b12693812ab81dfda086ae12ddac5ca07f3b --- include/samsung_lights.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/include/samsung_lights.h b/include/samsung_lights.h index 59bec0a..029be32 100644 --- a/include/samsung_lights.h +++ b/include/samsung_lights.h @@ -1,5 +1,6 @@ /* * Copyright (C) 2016 The CyanogenMod Project + * Copyright (C) 2017 The LineageOS Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -29,4 +30,25 @@ #define BUTTON_BRIGHTNESS_NODE "/sys/class/sec/sec_touchkey/brightness" #define LED_BLINK_NODE "/sys/class/sec/led/led_blink" +/* + * Brightness adjustment factors + * + * If one of your device's LEDs is more powerful than the others, use these + * values to equalise them. This value is in the range 0.0-1.0. + */ +#define LED_ADJUSTMENT_R 1.0 +#define LED_ADJUSTMENT_G 1.0 +#define LED_ADJUSTMENT_B 1.0 + +/* + * Light brightness factors + * + * It might make sense for all colours to be scaled down (for example, if your + * LED is too bright). Use these values to adjust the brightness of each + * light. This value is within the range 0-255. + */ +#define LED_BRIGHTNESS_BATTERY 255 +#define LED_BRIGHTNESS_NOTIFICATION 255 +#define LED_BRIGHTNESS_ATTENTION 255 + #endif // SAMSUNG_LIGHTS_H