I have been using Duemilaniove's and the example below is for the Hello world example between teo arduinos in xbee. How will it be different on Leonardos?
The example i have been using for the Duemilanove Atmega 328 for the transmitter is shown below and works fine.
#include <SoftwareSerial.h>
void setup () {
Serial.begin(9600);
zigBee.begin(9600);
}
void loop () {
zigBee.println ("Hello World");
delay (1000)
}
And for the receiver the code is as below:
#include <SoftwareSerial.h>
SoftwareSerial zigBee (3,2);
char barry;
void setup() {
Serial.begin(9600);
zigBee.begin(9600);
}
void loop () {
if (zigBee.available()) {
barry = zigBee.read();
Serial.print(barry);
}
}
Please can someone help me to incorporate this code on two Leonardos as i cannot get it to work
Thanks