void setup() {
Serial.begin(9600);
Serial.begin(9600);
}
void loop() {
char char_a = 'a';
Serial.write(char_a); delay(100);
Serial1.write(char_a); delay(100);
}
Generally, before you can use Serial1.write(), you need to use Serial1.begin(). On the Leonardo, you need to wait for the instance to actually start.