詹 博任 / Mbed 2 deprecated UART

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
stonegarden
Date:
Fri Nov 27 02:16:12 2020 +0000
Parent:
0:879aa9d0247b
Commit message:
UART

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
--- a/main.cpp	Tue Feb 12 17:39:05 2013 +0000
+++ b/main.cpp	Fri Nov 27 02:16:12 2020 +0000
@@ -1,10 +1,16 @@
 #include "mbed.h"
- 
-Serial pc(USBTX, USBRX); // tx, rx
- 
-int main() {
-    pc.printf("Hello World!\n");
-    while(1) {
-        pc.putc(pc.getc() + 1);
-    }
-}
\ No newline at end of file
+
+Serial pc(PD_5, PD_6,9600);
+
+
+
+int main()
+{
+    pc.printf("Nucleo_Test_UART_NBIoT\r\n");
+    
+    while(1)
+    {
+        pc.printf("Nucleo_Test_UART_NBIoT\r\n");
+        
+        }
+}
--- a/mbed.bld	Tue Feb 12 17:39:05 2013 +0000
+++ b/mbed.bld	Fri Nov 27 02:16:12 2020 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/0954ebd79f59
\ No newline at end of file
+https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400
\ No newline at end of file