Originally Posted by Kameo
In my app, i enabled the LED charging and only white is handled right now.
When the device is plugged, the LED will light until you either stop charging or the phone is fully charged.
Try it here and don't forget to hit the Thanks button:
MotoGuide 1.0.6 - Collection of small hacks for the Moto-G - http://forum.xda-developers.com/show....php?t=2596525
I can see that you are changing the trigger of "charging", I suspect this is what jmoore4294 did and should answer my question. One mistery solved.
Let's move to the second mistery, "rgb". Since no one replied, I decided to take a better look at the code.
What I discovered is that the "brightness" file of "rgb" is disabled, it does nothing. The LED should be turned on directly by "control" if I'm not wrong.
"control" is there to control multi-colored LED with one command by simply writing the color you want. Normally you have to specify the intensity of each fundamental color manually.
The problem here is that blink_cnt
, a module param which keeps count of the number of LEDs (or colors) available, is set to 1 (and hence can be modified, but I suspect that would cause a NULL pointer dereferences when "control" is used), so basically whatever you do, "white" only (blink_array
) will be used.
I still find interesting the presence of this "rgb" combo LED, even if it's actually not doing anything useful as of now.