ข้อ1
Dependencies: mbed
Revision 0:627aeff35b9f, committed 2017-11-24
- Comitter:
- 59340500018
- Date:
- Fri Nov 24 07:06:20 2017 +0000
- Commit message:
- ??? 1
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 627aeff35b9f main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Fri Nov 24 07:06:20 2017 +0000 @@ -0,0 +1,12 @@ +#include "mbed.h" +Serial pc(D1,D0); +AnalogIn ain(A1); + +int main() { + float a_in; + while(1){ + a_in = ain.read(); + a_in = a_in*3.3; + pc.printf("a_in: %f\n",a_in); + } +}
diff -r 000000000000 -r 627aeff35b9f mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Fri Nov 24 07:06:20 2017 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/e7ca05fa8600 \ No newline at end of file