On 09/28/2014 02:21 PM, Jonas Sicking wrote: > I think we need more information about capabilities of LEDs on modern > hardware. I also think we should be somewhat careful about over > engineering this since this isn't really a critical part of the > system, so not something we should spend too much time on.
One issue is that the android HAL doesn't expose what the device LED supports - it's really best effort, see http://androidxref.com/4.4.4_r1/xref/hardware/libhardware/include/hardware/lights.h#92 So I think it would be quite hard to implement this 'colors' property. For instance the Flame has no color control at all. On the other hand, some devices can have different lights that can be controlled independently (eg, the backlight of the 'home' button). It may be interesting to identify the led in the setPattern call. The android HAL api let you specify a color and a basic blinking pattern with an on and off time. Not as fancy as Jonas's proposal, but maybe good enough for most/all cases. Fabrice -- Fabrice Desré b2g team Mozilla Corporation _______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
