To push buttons (or switches) on an XBee ZB device report the conditions of input ports on it to a Nucleo board, and display them on a LCD.
Dependencies: TextLCD mbed xbee
Please refer to the following site for the details:
- http://developer.mbed.org/users/bokunimowakaru/code/xbee/wiki/Homepage (English)
- http://www.geocities.jp/bokunimowakaru/diy/xbee/xbee-nucleo.html (Japanese)
Revision 7:c2abaaca46a5, committed 2014-10-04
- Comitter:
- bokunimowakaru
- Date:
- Sat Oct 04 01:44:53 2014 +0000
- Parent:
- 6:dc48abc482d9
- Child:
- 8:3f3a9af17724
- 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 |
--- a/main.cpp Fri Sep 26 13:00:07 2014 +0000 +++ b/main.cpp Sat Oct 04 01:44:53 2014 +0000 @@ -4,6 +4,13 @@ XBee子機のDIO1~3(XBee_pin 19~17)をHigh や Low にすると PCまたはH8の 親機にスイッチの状態が表示されます。 +Sample Code 2 Switch +To push buttons on an XBee ZB device report the conditions of input +ports on it to a Nucleo board, and display them on a LCD. +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); + 本ソースリストおよびソフトウェアは、ライセンスフリーです。 利用、編集、再配布等が自由に行えますが、著作権表示の改変は禁止します。
--- a/xbee.lib Fri Sep 26 13:00:07 2014 +0000 +++ b/xbee.lib Sat Oct 04 01:44:53 2014 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/bokunimowakaru/code/xbee/#4d3b028779c9 +http://mbed.org/users/bokunimowakaru/code/xbee/#07525ad06714