test dmk out

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
YamashoCSD
Date:
Sat Nov 13 12:21:04 2021 +0000
Commit message:
mdktestprintf

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	Sat Nov 13 12:21:04 2021 +0000
@@ -0,0 +1,17 @@
+#include "mbed.h"
+
+DigitalOut myled(LED1);
+
+Serial pc(USBTX, USBRX); // tx, rx
+Serial tg(p9,p10); // tx, rx
+
+int main() {
+    while(1) {
+        pc.printf("test led1\n");
+        tg.printf("test led1\n");
+        myled = 1;
+        wait(0.2);
+        myled = 0;
+        wait(0.2);
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Sat Nov 13 12:21:04 2021 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400
\ No newline at end of file