illuminance.

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
AkiraK
Date:
Thu Oct 11 15:47:23 2012 +0000
Commit message:
illuminance.;

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r e7c1cda5f649 main.cpp
--- /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
diff -r 000000000000 -r e7c1cda5f649 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Oct 11 15:47:23 2012 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/cd19af002ccc
\ No newline at end of file