illuminance.

Dependencies:   mbed

Revision:
0:e7c1cda5f649
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Oct 11 15:47:23 2012 +0000
@@ -0,0 +1,11 @@
+#include "mbed.h"
+
+AnalogIn illu(p20);
+
+int main() {
+    while(true) {
+        float lx = illu * 3.3 / 3 * 1000;
+        printf("%5.2f\r\n", lx);
+        wait(1.0);
+    }
+}
\ No newline at end of file