Pratit Nayak
/
nodejs_serialin
qwerty
Revision 0:0240e30e6cb2, committed 2018-05-30
- Comitter:
- pratit911
- Date:
- Wed May 30 07:18:17 2018 +0000
- Commit message:
- sdfghjk
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 Wed May 30 07:18:17 2018 +0000 @@ -0,0 +1,16 @@ +#include "mbed.h" +AnalogIn Ain(PTB0); +Serial pc(USBTX,USBRX); +float ADCdata; + +int main() +{ + while(1) + { + + ADCdata=100*Ain; + pc.printf("%f \n\r",ADCdata); + wait(0.5); + } + + } \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Wed May 30 07:18:17 2018 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/5aab5a7997ee \ No newline at end of file