hello

Files at this revision

API Documentation at this revision

Comitter:
tesla_xudong
Date:
Sat Jan 26 08:53:45 2019 +0000
Commit message:
hello1

Changed in this revision

.hgignore Show annotated file Show diff for this revision Revisions of this file
hello.cpp Show annotated file Show diff for this revision Revisions of this file
mbed-os.lib Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.hgignore	Sat Jan 26 08:53:45 2019 +0000
@@ -0,0 +1,6 @@
+mbed-os
+.build
+/mdot/
+/mdot-library/
+/BUILD/
+/.git/
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/hello.cpp	Sat Jan 26 08:53:45 2019 +0000
@@ -0,0 +1,8 @@
+#include "mbed.h"
+
+Serial pc(USBTX, USBRX); // tx, rx
+
+int main() {
+    pc.printf("Hello World!\n");
+    while(1);
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed-os.lib	Sat Jan 26 08:53:45 2019 +0000
@@ -0,0 +1,1 @@
+https://github.com/ARMmbed/mbed-os/#16bac101a6b7b4724023dcf86ece1548e3a23cbf