![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
test
Revision 0:d0a11603dd8e, committed 2017-07-08
- Comitter:
- mbaverso
- Date:
- Sat Jul 08 02:19:34 2017 +0000
- Commit message:
- first commit
Changed in this revision
LightControl.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 d0a11603dd8e LightControl.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/LightControl.cpp Sat Jul 08 02:19:34 2017 +0000 @@ -0,0 +1,13 @@ +// Print messages when the AnalogIn is greater than 50% + +#include "mbed.h" + +AnalogIn lumens(p20); + +int main() { + while(1) { + if(lumens > 0.5) { + printf("Too hot! (%f)", lumens.read()); + } + } +}
diff -r 000000000000 -r d0a11603dd8e mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Sat Jul 08 02:19:34 2017 +0000 @@ -0,0 +1,1 @@ +https://mbed.org/users/mbed_official/code/mbed/builds/22da6e220af6 \ No newline at end of file