Gas-Sense / Mbed 2 deprecated Serial_test

Dependencies:   mbed

Fork of Serial_test by George Edwards

Files at this revision

API Documentation at this revision

Comitter:
melmon
Date:
Wed Jun 24 10:26:25 2015 +0000
Commit message:
Initial Release

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r e148303bda4f main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Wed Jun 24 10:26:25 2015 +0000
@@ -0,0 +1,22 @@
+#include "mbed.h"              
+/*
+To use, make sure that you have a connection between your serial port tx and rx pins
+*/ 
+Serial pc(USBTX, USBRX);
+Serial loop1(p9, p10);
+Serial loop2(p13, p14);
+ 
+int main() {
+    pc.printf("You Should see a message about the port below: \n\r");
+    loop1.printf("Serial Port 1 Works \n\r");
+    loop2.printf("Serial Port 2 Works \n\r");
+    while(1) {
+        //pc.putc(loop1.getc());
+        pc.putc(loop1.getc());
+        
+        
+        
+        
+        
+    }
+}
diff -r 000000000000 -r e148303bda4f mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Wed Jun 24 10:26:25 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/7cff1c4259d7
\ No newline at end of file