Android PWM LED

One of the improvements I’ve been wanting to add to Electric Dawn since the early days of development is to make use of the Camera LED on the device. Dawn simulators tend to have gradually brightening lights that greatly outshine the average Android screen. The closest option would be to use the Camera LED and gradually brighten this during the sunrise stage. Unfortunately, it still isn’t really feasible using the approach of Java level PWM (Pulse Width Modulation) as my tests this weekend (whilst answering a StackOverflow question) showed.