mirror of
https://github.com/LineageOS/android_device_xiaomi_whyred.git
synced 2025-10-05 19:41:57 +02:00
lights: We have only single color led.
Also add additional steps to duty cycle to make notif light fade smoother. Also detect maximum brightness dynamically
This commit is contained in:
parent
b9eb4bc24c
commit
abcab1e2cd
5 changed files with 51 additions and 50 deletions
|
@ -21,11 +21,12 @@
|
|||
#include <hardware/lights.h>
|
||||
#include <hidl/Status.h>
|
||||
#include <map>
|
||||
#include <mutex>
|
||||
#include <vector>
|
||||
#include <mutex>
|
||||
|
||||
using ::android::hardware::Return;
|
||||
using ::android::hardware::Void;
|
||||
using ::android::hardware::hidl_vec;
|
||||
using ::android::hardware::light::V2_0::ILight;
|
||||
using ::android::hardware::light::V2_0::Flash;
|
||||
using ::android::hardware::light::V2_0::LightState;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue