Simple wired UART transmitter code.

Dependencies:   mbed

Revision:
2:130a5e5afb89
Parent:
1:bc802d19f771
Child:
3:0ef302d879b4
--- a/main.cpp	Thu Nov 16 03:35:16 2017 +0000
+++ b/main.cpp	Fri Nov 17 18:45:32 2017 +0000
@@ -5,10 +5,11 @@
 
 DigitalOut myled(LED1);
 
-Serial uart(p9, p10); // tx, rx
+Serial uart(p9, p10, 115200); // tx, rx, baud
 
 int main() {
     while(1) {
         uart.putc('a');
+        wait_ms(1);
     }
 }