![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Just trying to read values into Terraterm
Diff: main.cpp
- Revision:
- 0:a4ee67431356
- Child:
- 1:68153aa41971
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Apr 23 23:49:13 2015 +0000 @@ -0,0 +1,11 @@ +#include "mbed.h" +#include "Motor.h" +AnalogIn sonic(p15); +float data; + +int main() { + while(1) { + data=bed.read(); + printf("%f \n",data); + } +}