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