From 6e7c28181e734d19e4333448ba21d092ce48c9fd Mon Sep 17 00:00:00 2001 From: jgromes Date: Sun, 2 Jun 2019 15:03:40 +0200 Subject: [PATCH] [XBee] Updated examples --- examples/XBee/XBee_Receive/XBee_Receive.ino | 14 ++++++++++++-- examples/XBee/XBee_Transmit/XBee_Transmit.ino | 14 ++++++++++++-- .../XBee/XBee_Transparent/XBee_Transparent.ino | 14 ++++++++++++-- 3 files changed, 36 insertions(+), 6 deletions(-) diff --git a/examples/XBee/XBee_Receive/XBee_Receive.ino b/examples/XBee/XBee_Receive/XBee_Receive.ino index b4e2a700..41921283 100644 --- a/examples/XBee/XBee_Receive/XBee_Receive.ino +++ b/examples/XBee/XBee_Receive/XBee_Receive.ino @@ -6,13 +6,23 @@ IMPORTANT: Before uploading this example, make sure that the XBee module is running API ROUTER/ENDPOINT firmware! + + For full API reference, see the GitHub Pages + https://jgromes.github.io/RadioLib/ */ // include the library #include -// XBee module is in slot A on the shield -XBee bee = RadioShield.ModuleA; +// XBee has the following connections: +// TX pin: 9 +// RX pin: 8 +// RESET pin: 3 +XBee bee = new Module(9, 8); + +// or using RadioShield +// https://github.com/jgromes/RadioShield +//XBee bee = RadioShield.ModuleA; void setup() { Serial.begin(9600); diff --git a/examples/XBee/XBee_Transmit/XBee_Transmit.ino b/examples/XBee/XBee_Transmit/XBee_Transmit.ino index 8d7c9fc6..1123015d 100644 --- a/examples/XBee/XBee_Transmit/XBee_Transmit.ino +++ b/examples/XBee/XBee_Transmit/XBee_Transmit.ino @@ -6,13 +6,23 @@ IMPORTANT: Before uploading this example, make sure that the XBee module is running API COORDINATOR firmware! + + For full API reference, see the GitHub Pages + https://jgromes.github.io/RadioLib/ */ // include the library #include -// XBee module is in slot A on the shield -XBee bee = RadioShield.ModuleA; +// XBee has the following connections: +// TX pin: 9 +// RX pin: 8 +// RESET pin: 3 +XBee bee = new Module(9, 8); + +// or using RadioShield +// https://github.com/jgromes/RadioShield +//XBee bee = RadioShield.ModuleA; void setup() { Serial.begin(9600); diff --git a/examples/XBee/XBee_Transparent/XBee_Transparent.ino b/examples/XBee/XBee_Transparent/XBee_Transparent.ino index 0eff8881..d8bef65c 100644 --- a/examples/XBee/XBee_Transparent/XBee_Transparent.ino +++ b/examples/XBee/XBee_Transparent/XBee_Transparent.ino @@ -8,13 +8,23 @@ IMPORTANT: Before uploading this example, make sure that the XBee modules are running AT COORDINATOR and AT ROUTER firmware! + + For full API reference, see the GitHub Pages + https://jgromes.github.io/RadioLib/ */ // include the library #include -// XBee module is in slot A on the shield -XBeeSerial bee = RadioShield.ModuleA; +// XBee has the following connections: +// TX pin: 9 +// RX pin: 8 +// RESET pin: 3 +XBee bee = new Module(9, 8); + +// or using RadioShield +// https://github.com/jgromes/RadioShield +//XBee bee = RadioShield.ModuleA; void setup() { Serial.begin(9600);