Mark Horn
/
New
Diff: main.cpp
- Revision:
- 1:febf41cc26a6
- Parent:
- 0:87415e84d72f
--- a/main.cpp Tue Oct 26 01:38:56 2010 +0000 +++ b/main.cpp Tue Oct 26 01:55:24 2010 +0000 @@ -1,13 +1,14 @@ -#include "mbed.h" - -#include "Terminal.h" - -Terminal term(USBTX, USBRX); - -AnalogIn voltage(p20); - -int main() { - while(1==1){ - term.printf("(%f)", voltage.read()); - } -} +#include "mbed.h" + +#include "Terminal.h" + +Terminal term(USBTX, USBRX); + +AnalogIn voltage(p20); + +int main() { + while(1==1){ + float x = voltage.read(); + term.printf('x'); + } +}