karunakar praveen
/
ldr_serialprint
ldr
Revision 0:56824faf6824, committed 2013-01-12
- Comitter:
- kpraveen
- Date:
- Sat Jan 12 05:20:31 2013 +0000
- Commit message:
- ldr is coonected to pin20.display value in monitor when resistance changes
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 56824faf6824 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Sat Jan 12 05:20:31 2013 +0000 @@ -0,0 +1,20 @@ +#include "mbed.h" + +AnalogIn ain(p20); +int val=0; + +int main() { while(1) +{ + + + + + + + + + printf("analog input is (%f)",ain.read()); + + } + +}
diff -r 000000000000 -r 56824faf6824 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Sat Jan 12 05:20:31 2013 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/71b101360fb9 \ No newline at end of file