[XBee] Updated examples
This commit is contained in:
parent
63ee5f0a07
commit
6e7c28181e
3 changed files with 36 additions and 6 deletions
|
@ -6,13 +6,23 @@
|
||||||
|
|
||||||
IMPORTANT: Before uploading this example, make sure that the XBee module
|
IMPORTANT: Before uploading this example, make sure that the XBee module
|
||||||
is running API ROUTER/ENDPOINT firmware!
|
is running API ROUTER/ENDPOINT firmware!
|
||||||
|
|
||||||
|
For full API reference, see the GitHub Pages
|
||||||
|
https://jgromes.github.io/RadioLib/
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// include the library
|
// include the library
|
||||||
#include <RadioLib.h>
|
#include <RadioLib.h>
|
||||||
|
|
||||||
// XBee module is in slot A on the shield
|
// XBee has the following connections:
|
||||||
XBee bee = RadioShield.ModuleA;
|
// 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() {
|
void setup() {
|
||||||
Serial.begin(9600);
|
Serial.begin(9600);
|
||||||
|
|
|
@ -6,13 +6,23 @@
|
||||||
|
|
||||||
IMPORTANT: Before uploading this example, make sure that the XBee module
|
IMPORTANT: Before uploading this example, make sure that the XBee module
|
||||||
is running API COORDINATOR firmware!
|
is running API COORDINATOR firmware!
|
||||||
|
|
||||||
|
For full API reference, see the GitHub Pages
|
||||||
|
https://jgromes.github.io/RadioLib/
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// include the library
|
// include the library
|
||||||
#include <RadioLib.h>
|
#include <RadioLib.h>
|
||||||
|
|
||||||
// XBee module is in slot A on the shield
|
// XBee has the following connections:
|
||||||
XBee bee = RadioShield.ModuleA;
|
// 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() {
|
void setup() {
|
||||||
Serial.begin(9600);
|
Serial.begin(9600);
|
||||||
|
|
|
@ -8,13 +8,23 @@
|
||||||
|
|
||||||
IMPORTANT: Before uploading this example, make sure that the XBee modules
|
IMPORTANT: Before uploading this example, make sure that the XBee modules
|
||||||
are running AT COORDINATOR and AT ROUTER firmware!
|
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 the library
|
||||||
#include <RadioLib.h>
|
#include <RadioLib.h>
|
||||||
|
|
||||||
// XBee module is in slot A on the shield
|
// XBee has the following connections:
|
||||||
XBeeSerial bee = RadioShield.ModuleA;
|
// 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() {
|
void setup() {
|
||||||
Serial.begin(9600);
|
Serial.begin(9600);
|
||||||
|
|
Loading…
Add table
Reference in a new issue