Fabien Lepoutre
/
SerialHelloWorld
main.cpp
- Committer:
- fabienlepoutre
- Date:
- 2012-01-16
- Revision:
- 1:39d07fd37fc8
- Parent:
- 0:85b30aefb8ca
File content as of revision 1:39d07fd37fc8:
#include "mbed.h" AnalogIn test(p20); Timer t; Serial pc(USBTX, USBRX); // tx, rx int main() { int j=0; float i; t.reset(); t.start(); while(t.read_ms = 1000) { i = read(); j++; } }