diff --git a/pdk/Pdk.mk b/pdk/Pdk.mk index c824037eb..526838410 100644 --- a/pdk/Pdk.mk +++ b/pdk/Pdk.mk @@ -80,7 +80,8 @@ pdk_headers := \ $(pdk_legacy_hardware_dir)/gps.h \ $(pdk_legacy_hardware_dir)/wifi.h \ $(pdk_camera_dir)/CameraHardwareInterface.h \ - $(pdk_hardware_dir)/sensors.h + $(pdk_hardware_dir)/sensors.h \ + $(pdk_hardware_dir)/lights.h # Create a rule to copy the list of PDK headers to be doxyginated. # copy-one-header defines the actual rule. diff --git a/pdk/docs/guide/lights.jd b/pdk/docs/guide/lights.jd new file mode 100755 index 000000000..5437e631a --- /dev/null +++ b/pdk/docs/guide/lights.jd @@ -0,0 +1,44 @@ +page.title=Lights +pdk.version=1.0 +@jd:body + + +
+ +Android defines a user space C abstraction interface for LED hardware. The interface header is defined in
+hardware/libhardware/include/hardware/lights.h.
+In order to integrate LEDs with Android you need to build a shared library that implements this interface.
+
+The types of logical lights currently supported by Android include:
+
To implement a Lights driver, create a shared library that implements the interface defined in lights.h. You must name your shared library
+liblights.so so that it will get loaded from /system/lib at runtime.
+
Note: This document relies on some Doxygen-generated content that appears in an iFrame below. To return to the Doxygen default content for this page, click here.
+ + +