xbee count up

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
RyusukeIwata
Date:
Tue Aug 03 07:13:39 2021 +0000
Commit message:
first commit;

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
diff -r 000000000000 -r 020c7ccf5840 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Aug 03 07:13:39 2021 +0000
@@ -0,0 +1,14 @@
+#include "mbed.h"
+Serial pc(USBTX,USBRX);
+Serial xbee(PA_9,PA_10);
+int main()
+{
+    pc.baud(9600);
+    xbee.baud(9600);
+    pc.printf("Xbee Count Up Mode\r\n");
+    for(int i = 0; i < 10; i++) {
+        xbee.printf("num = %d\r\n",i);
+        pc.printf("%c\r\n",xbee.getc());
+        wait(1.0);
+    }
+}
\ No newline at end of file
diff -r 000000000000 -r 020c7ccf5840 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue Aug 03 07:13:39 2021 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400
\ No newline at end of file