Biswajit Padhi
/
Potentiometer
poiuyrtyuioiuytd
Revision 0:b22aeee85daa, committed 2018-06-15
- Comitter:
- biswajit007
- Date:
- Fri Jun 15 09:05:19 2018 +0000
- Commit message:
- qwertyuioiugf
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 b22aeee85daa main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Fri Jun 15 09:05:19 2018 +0000 @@ -0,0 +1,14 @@ +#include "mbed.h" + +DigitalOut myled(LED1); +AnalogIn Pot(A0); +Serial pc(USBTX,USBRX); +int main() { + while(1) { + + float pot = Pot.read(); + pc.printf("The value of sensor is: %f\n", pot*1000); + + + } +}
diff -r 000000000000 -r b22aeee85daa mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Fri Jun 15 09:05:19 2018 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/5aab5a7997ee \ No newline at end of file