Rick Bisschop
/
Minor_test_serial
assignment 2a
Fork of Minor_test_serial by
Diff: main.cpp
- Revision:
- 1:e6c16b07c06a
- Parent:
- 0:c8f15874531b
--- a/main.cpp Wed Sep 02 14:50:46 2015 +0000 +++ b/main.cpp Mon Sep 12 09:59:59 2016 +0000 @@ -1,14 +1,14 @@ #include "mbed.h" -#include "MODSERIAL.h" + DigitalOut myled(LED_GREEN); -MODSERIAL pc(USBTX, USBRX); +Serial pc(USBTX, USBRX); int main() { int i = 0; pc.baud(115200); - pc.printf("Hello World!\n"); + pc.printf("Hello World!\n\r"); while (true) { wait(0.5f); // wait a small period of time