This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

I2C_transfer 函数



调用I2C_transfer函数发送数据给从机时,我只需绑定从机地址,每次发送数据时I2C_transfer函数会自动先发送从机地址吗?

void Send_Byte(u8 dat)
{
    /* Common I2C transaction setup */
       i2cTransaction.writeBuf   = txBuffer;
       i2cTransaction.writeCount = 1;
       i2cTransaction.readBuf    = rxBuffer;
       i2cTransaction.readCount  = 0;

       i2cTransaction.slaveAddress = OLED_SLAVEADDR;
       txBuffer[0] = dat;
       if (!I2C_transfer(I2Chandle, &i2cTransaction)) {
           Log_error0("I2C Transaction fail!");
       }
}
每调用一次Send_Byte函数传数一个字节会产生一个停止信号吗?