mbvn,ldfbjnlb,xcbjdf

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
stersky
Date:
Sun Jan 27 20:53:46 2019 +0000
Commit message:
qjfslvm

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 2bea849b5ba1 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sun Jan 27 20:53:46 2019 +0000
@@ -0,0 +1,17 @@
+#include "mbed.h"
+
+Serial PC(USBTX, USBRX);
+Serial GPS(p13,p14);
+char a;
+
+int main() {
+    GPS.baud(9600);
+    PC.baud(460800);
+    
+    while(1) {
+        if (GPS.readable()) {  // attention PC.readable reste à 1 tant qu'il n'y a pas eu de getc qui vide le buffer
+            a=GPS.getc();
+            PC.printf("%c",a);
+            }
+    }
+}
diff -r 000000000000 -r 2bea849b5ba1 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Sun Jan 27 20:53:46 2019 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/e95d10626187
\ No newline at end of file