blob: 9be148704d098931bf55daf9f01a9faa1310b159 [file] [log] [blame] [view]
Skyler Kaufman991ae4d2011-04-07 12:30:41 -07001# Lights #
2
3<p>Android defines a user space C abstraction interface for LED hardware. The interface header is defined in
4<code>hardware/libhardware/include/hardware/lights.h</code>.
5In order to integrate LEDs with Android you need to build a shared library that implements this interface.
6
7The types of logical lights currently supported by Android include:
8<ul>
9<li>Backlight</li>
10<li>Keyboard</li>
11<li>Buttons</li>
12<li>Battery</li>
13<li>Notifications</li>
14<li>Attention</li>
15</ul>
16</p>
17
18<a name="androidLightsBuildingDriver"></a><h3>Building a Lights Library</h3>
19<p> To implement a Lights driver, create a shared library that implements the interface defined in <code>lights.h</code>. You must name your shared library
20<code>liblights.so</code> so that it will get loaded from <code>/system/lib</code> at runtime.
21</p>
22
23
24Doxygen content is unavailable at the moment as source.android.com is deconstructed and then reconstructed. Sorry for the inconvenience!