Hi,
I've got a problem with serials interfaces on arduino mega 2560, i'm trying to use serial, serial1 and serial2 simultaneously.
My code is this one:
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
Serial1.begin(9600);
Serial2.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
if(Serial1.available()>0)
{
Serial.print(Serial1.read());
}
if(Serial2.available()>0)
{
Serial.print(Serial2.read());
}
}[/table]
It don't walks, but if i try to use Serial and Serial1 it walks, and when i try to use Serial and Serial2 but the program don't run with both Serials.
I'm using adruino 1.5.2 i tried 1.0.5, i'm on windows Xp sp3.
I hope you understand my trouble and will help me.