Brian Daniels
/
Seeed_Grove_Luminance_Sensor
Example program for the Grove Luminance Sensor.
Revision 0:c927dd08ebe5, committed 2015-04-30
- 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