Anmol sardhalia
/
VAT_LAB4_SERIALPOT
..
Revision 0:2d898afba864, committed 2017-02-09
- Comitter:
- anmolhardik
- Date:
- Thu Feb 09 10:51:04 2017 +0000
- Commit message:
- import
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 2d898afba864 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Feb 09 10:51:04 2017 +0000 @@ -0,0 +1,18 @@ +#include "mbed.h" +Serial pc (USBTX,USBRX); +AnalogIn pot(PTB0); +main() +{ + float value=0; + while(1) + { + value=pot.read()*3.3; + pc.printf("pot=%0.2f \n \r",value); + + wait(1.0); + } +} + + + +
diff -r 000000000000 -r 2d898afba864 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu Feb 09 10:51:04 2017 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/176b8275d35d \ No newline at end of file