Minimal HAL Code to connection I2C1 and I2C2 on one board in pooling mode
Hi,
coudl someone paste simple code to send some bytes between I2C1 and I2C2 on one board?
Prefer HAL. I try this:
uint8_t data = 69;
uint8_t data2 = 0;
HAL_I2C_Master_Transmit(&hi2c1, 32, &data, 1, HAL_MAX_DELAY);
HAL_I2C_Slave_Receive(&hi2c2, &data2,1,HAL_MAX_DELAY);
and
HAL_I2C_Slave_Receive_IT(&hi2c2, &data2,1);
HAL_I2C_Master_Transmit(&hi2c1, 32, &data, 1, HAL_MAX_DELAY);
but not works. Slave address is 16 (shift left is 32).
