航空研究会 / Mbed 2 deprecated uarttest_buf

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
taknokolat
Date:
Mon Dec 24 07:54:24 2018 +0000
Commit message:
a

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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Dec 24 07:54:24 2018 +0000
@@ -0,0 +1,20 @@
+#include "mbed.h"
+
+Serial g_Serial1(USBTX,USBRX,115200);
+//Serial g_serial2(PB_6, PB_7);skipper
+Serial g_serial2(PA_9, PA_10);
+int main() {
+    g_serial2.baud(115200);
+    
+    while(1) {
+        g_serial2.printf( "S");
+        g_serial2.printf( "N");
+        g_serial2.printf( "A");
+        g_serial2.printf( "A");
+        g_serial2.printf( "F");
+        
+        //wait(1.0);
+        g_Serial1.printf("a\r\n");
+        wait_ms(31);
+    }
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon Dec 24 07:54:24 2018 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/3a7713b1edbc
\ No newline at end of file