Hi,
I am using Serial and Serial3 ports for output on a Mega2560. When I initialize just the Serial port (connected to USB), anytime I send Serial.print(), it also sends to Serial3 which is connected to a Bluetooth HM-10 module. Serial3 seems to be ignored on initialization and doesn't output anything to either Serial (usb) or Serial3 devices.
My Serial3 device is connected to pins 15 and 14.
void setup(){
Serial.begin(9600);
// Serial3.begin(9600); // initing this does not change behavior
}
void loop(){
Serial.println("To USB - Serial"); // sends to both Serial (USB) and Serial3 (BT device)
// Serial3.println("To Bluetooth - Serial3"); // message never sends
}
Just asking...
Have you selected the correct (Mega) target in the Arduino IDE ?
You haven't fiddled with any of the Arduino library installation, or edited the .H files - have you?