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.
Dependencies: C12832_lcd mbed zbee_lib
Fork of simple_zb_rx by
Diff: main.cpp
- Revision:
- 0:c19cf740caf3
- Child:
- 1:f8efb266270f
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Sat Mar 12 17:49:28 2016 +0000
@@ -0,0 +1,17 @@
+#include "mbed.h"
+#include "zbee.h"
+#include "C12832_lcd.h"
+
+DigitalOut myled(LED1);
+zbee zbee1(p9,p10,ZBEE_BAUD);
+C12832_LCD lcd;
+
+char text[50]; // buffer read
+
+int main() {
+ int i=1;
+ while(1) {
+ zbee1.ReceiveData(text,11);
+ lcd.printf("%i RX <- %s\n",i++,text);
+ }
+}
