Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: main.cpp
- Revision:
- 0:53817a293b39
- Child:
- 1:fe18dd0ba172
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Mon Oct 02 16:00:50 2017 +0000
@@ -0,0 +1,31 @@
+#include "mbed.h"
+
+DigitalOut myled(LED1);
+
+Serial pc(USBTX, USBRX);
+
+Serial xBee(p13, p14);
+DigitalOut reset(p8);
+
+uint8_t pan_id[14]={0x7E, 0x00, 0x0A, 0x08, 0x01, 0x49, 0x44, 0x46, 0x46, 0x39, 0x39, 0x31, 0x31, 0x09};
+
+int main() {
+ reset =0;
+ wait_ms(500);
+ reset=1;
+ wait(1);
+ xBee.printf("+++");
+ wait(1);
+ //
+// for(int i =0;i <14;i++){
+// xBee.putc(pan_id[i]);
+// }
+
+ while(1) {
+
+ if(xBee.readable()){
+ pc.printf("%x\n",xBee.getc());
+ }
+ }
+}
+
