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:
Vasishath Kaushal 2018-06-06 21:35:05 +05:30
parent b9eb4bc24c
commit abcab1e2cd
5 changed files with 51 additions and 50 deletions

View file

@ -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;