A serial parser for a specific project
Fork of Serial_HelloWorld_Mbed by
Diff: main.cpp
- Revision:
- 3:3399899d714b
- Parent:
- 2:dcca46d7ca21
- Child:
- 4:178b04ae427e
--- a/main.cpp Tue Jul 14 12:12:32 2015 +0000 +++ b/main.cpp Tue Jul 14 12:31:38 2015 +0000 @@ -1,7 +1,10 @@ #include "mbed.h" - #define TX USBTX - #define RX USBRX + /*#define TX USBTX + #define RX USBRX*/ + +#define TX D1 +#define RX D0 Serial pc(TX, RX); // tx, rx DigitalOut led(LED1); @@ -52,6 +55,7 @@ while (x < count) { pc.printf("%d ", x); + x++; } //while loop with counter }