Geoff,
thx! for answer me!! =)
The communications pins for the serial comms are specified in the jumper blocks that are explained on page 3 of the PDF you've linked to for the XbeeShield.
Yes, I know that.. the thing is that i don't know how to make it on code, because when i want to use the SoftwareSerial library, it doesn't work, for example, I tried to implement the Arduino example... and this is what happened:
Code:
#include <SoftwareSerial.h>
SoftwareSerial mySerial(10, 11); // RX, TX
void setup()
{
// Open serial communications and wait for port to open:
Serial.begin(57600);
while (!Serial) {
; // wait for serial port to connect. Needed for Leonardo only
}
Serial.println("Goodnight moon!");
// set the data rate for the SoftwareSerial port
mySerial.begin(4800);
mySerial.println("Hello, world?");
}
void loop() // run over and over
{
if (mySerial.available())
Serial.write(mySerial.read());
if (Serial.available())
mySerial.write(Serial.read());
}
SoftwareSerial mySerial(10, 11); // RX, TX
void setup()
{
// Open serial communications and wait for port to open:
Serial.begin(57600);
while (!Serial) {
; // wait for serial port to connect. Needed for Leonardo only
}
Serial.println("Goodnight moon!");
// set the data rate for the SoftwareSerial port
mySerial.begin(4800);
mySerial.println("Hello, world?");
}
void loop() // run over and over
{
if (mySerial.available())
Serial.write(mySerial.read());
if (Serial.available())
mySerial.write(Serial.read());
}
C:\...\arduino-1.0.3-windows\arduino-1.0.3\libraries\SoftwareSerial\SoftwareSerial.cpp: In member function 'void SoftwareSerial::begin(long int)':
C:\...\arduino-1.0.3-windows\arduino-1.0.3\libraries\SoftwareSerial\SoftwareSerial.cpp:399: error: 'digitalPinToPCICR' was not declared in this scope
C:\...\arduino-1.0.3-windows\arduino-1.0.3\libraries\SoftwareSerial\SoftwareSerial.cpp:401: error: 'digitalPinToPCICRbit' was not declared in this scope
C:\...\arduino-1.0.3-windows\arduino-1.0.3\libraries\SoftwareSerial\SoftwareSerial.cpp:402: error: 'digitalPinToPCMSK' was not declared in this scope
C:\...\arduino-1.0.3-windows\arduino-1.0.3\libraries\SoftwareSerial\SoftwareSerial.cpp:402: error: 'digitalPinToPCMSKbit' was not declared in this scope
C:\...\arduino-1.0.3-windows\arduino-1.0.3\libraries\SoftwareSerial\SoftwareSerial.cpp: In member function 'void SoftwareSerial::end()':
C:\...\arduino-1.0.3-windows\arduino-1.0.3\libraries\SoftwareSerial\SoftwareSerial.cpp:417: error: 'digitalPinToPCMSK' was not declared in this scope
C:\...\arduino-1.0.3-windows\arduino-1.0.3\libraries\SoftwareSerial\SoftwareSerial.cpp:418: error: 'digitalPinToPCMSKbit' was not declared in this scope
Is there a reason you need to run IDE 0.22?
No, i can use whatever IDE i want... in fact in the example I use the lastest version.
My problem is that i have some troubles with the soft, and the code... i have no idea how to do to see in the serial monitor what happens with the WiFly Shield... that kind of errors aren't the only errors that the IDE showed... it showed me errors inside the libraries, wich i have no idea why...
In this website is my robot with its characteristics: http://www.robotgroup.com.ar/web/index.php?page=shop.product_details&flypage=flypage.tpl&product_id=3&category_id=17&option=com_virtuemart&Itemid=2&lang=es
I hope that u can help me with my problem...
If u don't understand me jet, ask me again and i'll explain u from the beggining..
Thx!!!!!!! =)
Cheers!! Fabri.