Skip to content

Instantly share code, notes, and snippets.

@ashgti
Created January 28, 2012 20:04
Show Gist options
  • Select an option

  • Save ashgti/1695597 to your computer and use it in GitHub Desktop.

Select an option

Save ashgti/1695597 to your computer and use it in GitHub Desktop.
A simple arduino setup to test a xbee
#include <SoftwareSerial.h>
SoftwareSerial xbee(2,3);
void setup() {
Serial.begin(9600);
xbee.begin(9600);
}
void loop() {
while (Serial.available()) {
xbee.write(Serial.read());
}
while (xbee.available()) {
Serial.write(xbee.read());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment