[SOLVED] Serial comunication between Uno and Leonardo

Hi every one. Im trying to make a serial comunication between a Leonardo and an arduino UNO, but im starting to get mad :confused:
I’ve attached an schematic of the connections, and this is the code

SENDER (LEONARDO):

void setup() 
{
  Serial.begin(9600);
  while(!Serial); //See this on the reference page
  Serial.println("We are alive"); // I never see this on the serial monitor, but I can see what I print on the loop()
}

void loop() 
{
  Serial.print((byte)100);    // I've traied with serial.write and also using software serial
  delay(3000);
}

RECIEVER (UNO)

#include <SoftwareSerial.h>
SoftwareSerial mySerial(8,7); //RX,TX.

void setup() 
{
  Serial.begin(9600);
  mySerial.begin(9600);
  Serial.println("We are alive."); //I see this on the serial monitor
}

void loop()
{
  while(mySerial.available()>0)
  {
    byte x=mySerial.read();
    Serial.println(x);            //Can't see anything
  }
}

I’ve noticed that the onboard Tx led of the Leonardo doesn’t blink when the two ardus are connected, but when I try only the Leo with the serial monitor it blinks correctly.

I’m using software serial on the reciever so I can free the Rx, and Tx, pins (0 and 1) and use the serial monitor…

This is so simple and I can’t get it… what im doing wrong?

Thank you very much

The hardware serial interface on the Leonardo is accessible by the Serial1 object. The Serial object is the serial emulation on the USB bus.

pylon: The hardware serial interface on the Leonardo is accessible by the Serial1 object. The Serial object is the serial emulation on the USB bus.

Thanks!! That's whats the problem, everthing works now.

Thanks again.