Measured results of an XBee wireless sensor device are displayed a LCD on Nucleo board with an XBee coordinator which is in API mode.

Dependencies:   TextLCD mbed xbee sample04_sens

Dependents:   sample04_sens

Please refer to the following site for the details:

Files at this revision

API Documentation at this revision

Comitter:
bokunimowakaru
Date:
Sat Oct 04 01:43:12 2014 +0000
Parent:
7:a3769f9f7dfc
Child:
9:f107d2c9cd6e
Commit message:
XBee lib's serial setting code on xbee.cpp is moved to 4th line on it.

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
xbee.lib Show annotated file Show diff for this revision Revisions of this file
xbee_example04_sens.lib Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Fri Sep 26 13:23:26 2014 +0000
+++ b/main.cpp	Sat Oct 04 01:43:12 2014 +0000
@@ -5,6 +5,13 @@
 自作したセンサーでもDIO1~2(XBee_pin 19~18)に0~1.2Vのアナログ電圧を
 与えていれば、何らかの値を読みとることができます。
 
+Sample Code 4 Sensor
+Measured results of an XBee wireless sensor device are displayed a LCD
+on Nucleo board with an XBee coordinator which is in API mode.
+When you will use this anything other than Nucleo microcomputer board,
+please change the 4th line of xbee/xbee.cpp:
+        RawSerial _xbee_serial(SERIAL_TX, SERIAL_RX);
+
 新しいXBee子機のコミッションボタンDIO0(XBee_pin 20)を押下する(信号レベ
 ルがH→L→Hに推移する)と、子機から参加要求信号が発行されて、Arduino親機
 が子機を発見し、「found a device」と表示します。
@@ -23,8 +30,8 @@
                                Copyright (c) 2010-2014 Wataru KUNINO
                                http://www.geocities.jp/bokunimowakaru/
 *********************************************************************/
-
-#include <xbee.h>
+#include <mbed.h>
+#include "xbee.h"
 #include "TextLCD.h"
 #define FORCE_INTERVAL  100				// 1~254 データ要求間隔
 TextLCD lcd(PA_9, PC_7, PB_5, PB_4, PB_10, PA_8); // rs, e, d4-d7
--- a/xbee.lib	Fri Sep 26 13:23:26 2014 +0000
+++ b/xbee.lib	Sat Oct 04 01:43:12 2014 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/bokunimowakaru/code/xbee/#4d3b028779c9
+http://mbed.org/users/bokunimowakaru/code/xbee/#879f455f92c9
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/xbee_example04_sens.lib	Sat Oct 04 01:43:12 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/bokunimowakaru/code/sample04_sens/#a3769f9f7dfc