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:

Revision:
8:a114c798d954
Parent:
7:a3769f9f7dfc
Child:
9:f107d2c9cd6e
--- 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