Example program for the Grove Luminance Sensor.

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
bridadan
Date:
Thu Apr 30 20:17:02 2015 +0000
Commit message:
Initial commit

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 c927dd08ebe5 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Apr 30 20:17:02 2015 +0000
@@ -0,0 +1,11 @@
+#include "mbed.h"
+
+AnalogIn luminance(A0);
+
+int main()
+{
+    while (true) {
+        printf("Luminance: %f\r\n", luminance.read());
+        wait(0.5f);
+    }
+}
\ No newline at end of file
diff -r 000000000000 -r c927dd08ebe5 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Apr 30 20:17:02 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/8ab26030e058
\ No newline at end of file