Skip to content

Instantly share code, notes, and snippets.

@korayal
Created December 13, 2012 11:05
Show Gist options
  • Save korayal/4275773 to your computer and use it in GitHub Desktop.
Save korayal/4275773 to your computer and use it in GitHub Desktop.
void setup() {
Serial.begin(9600);
//buradan sonrası sadece Mega'lar için geçerli
Serial1.begin(19200);
Serial2.begin(38400);
Serial3.begin(4800);
}
void loop() {
while(Serial.available()) Serial.print(Serial.read());
//buradan sonrası sadece Mega'lar için geçerli
while(Serial1.available()) Serial.print(Serial.read());
while(Serial2.available()) Serial.print(Serial.read());
while(Serial3.available()) Serial.print(Serial.read());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment