Ramps 1.4, Sparkfun XBee shield, two way communication ! January 15, 2015 03:34PM |
Registered: 9 years ago Posts: 2 |
void setup() { Serial1.begin(9600); Serial.begin(9600); } void loop() { if (Serial.available()) { // If data comes in from serial monitor, send it out to Computer-XBee Serial1.write(Serial.read()); } if (Serial1.available()){ // If data comes in from XBee, send it out to serial monitor Serial.write(Serial1.read()); } }
Re: Ramps 1.4, Sparkfun XBee shield, two way communication ! January 15, 2015 05:31PM |
Registered: 10 years ago Posts: 581 |
Re: Ramps 1.4, Sparkfun XBee shield, two way communication ! January 16, 2015 03:06PM |
Registered: 9 years ago Posts: 2 |