interesting
Dependencies: mbed
Diff: main.cpp
- Revision:
- 1:9f1d7a316755
- Parent:
- 0:bb088e8d11ad
--- a/main.cpp Wed Nov 29 22:10:25 2017 +0000 +++ b/main.cpp Wed Nov 29 22:11:46 2017 +0000 @@ -1,20 +1,13 @@ #include "mbed.h" - AnalogIn end_in(p15); - Serial pc(USBTX, USBRX); // tx, rx -int main() { - - float end_test=0; - +int main() { + float end_test=0; while(1) { - wait(1); - + wait(1); end_test = end_in; - pc.printf("%f\n\r",end_test); - - + pc.printf("%f\n\r",end_test); } }