channel=1;
baud=9600;
delay(100); //initizes serial on arduino, and saves channel number
switch(channel){ //up to 4 channels to accomadate Mega
case 0:
Serial.begin(baud);
break;
case 1:
Serial1.begin(baud);
break;
case 2:
Serial2.begin(baud);
break;
case 3:
Serial3.begin(baud);
break;
}
}
Why are you using a switch statement with 4 cases to deal with a hardcoded value?
You are calling the SerialN.begin() function in the constructor of your class. Do you know whether your constructor is called before or after the HardwareSerial class is initialized? If not, then you need to take a hint from the HardwareSerial class, and create a begin() method.
so I have a serial LCD 2x16 from radio shack
Connected to what?