// CLIENT
int I2CUebertragung (void)
{

    I2C1ADR0 = 2;                  		// Client Adresse
    I2C1ADR1 = 2;
    I2C1ADR2 = 2;
    I2C1ADR3 = 2;

         
    I2C1CNTH = 0;
    I2C1CNTL = 4;                   		// Anzahl der Übertragungen

    

   while (I2C1PIRbits.SCIF == 0)   // Warten, bis Start interrupt Flag gesetzt wird
    {  
    }

       
    
    while (I2C1STAT1bits.TXBE == 0)
    {
    }      
    I2C1TXB = Uebertragung1;

    
    while (I2C1STAT1bits.TXBE == 0)
    {
    }      
    I2C1TXB = Uebergtragung2; 

  
    while (I2C1STAT1bits.TXBE == 0)
    {
    }    
    I2C1TXB = Uebertragung3;  

    
    while (I2C1STAT1bits.TXBE == 0)
    {
    }    
    I2C1TXB = Uebertragung4;  

     I2C1ERR = 0;

     return 0;
     
}