詹 博任 / Mbed 2 deprecated UART

Dependencies:   mbed

Revision:
1:5614b8b6163f
Parent:
0:879aa9d0247b
--- 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");
+        
+        }
+}