![](/media/cache/profiles/e1f5448f160187bcb4c4acaacfb3456c.50x50_q85.jpg)
illuminance.
Revision 0:e7c1cda5f649, committed 2012-10-11
- 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 |
--- /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
--- /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