void I2Cread(){
for(i=0;i<8;i++){
I2CStart();
I2CSend(0xD0); /* Send slave address with write */ /* Send address for dummy write operation *//* this address is actually where we are going to read from */
I2CSend(0x00); /* Send a repeated start, after a dummy write to start reading */
I2CRestart();
I2CSend(0xD1); /* send slave address with read bit set */
I2CData[i] = I2CRead(); /* read a byte */ /* ACK if its not the last byte to read */
}
I2CStop(); /* Send stop */
}