how to know what hexadecimal my i2c is
void I2C_Send7bitAddress(I2C_TypeDef* I2Cx, uint8_t Address, uint8_t I2C_Direction)
{
/* Check the parameters */
assert_param(IS_I2C_ALL_PERIPH(I2Cx));
assert_param(IS_I2C_DIRECTION(I2C_Direction));
/* Test on the direction to set/reset the read/write bit */
if (I2C_Direction != I2C_Direction_Transmitter)
{
/* Shift the address one bit to the left */
Address = Address << 1;
/* Set the address bit0 for read */
Address |= OAR1_ADD0_Set;
}
else
{
/* Shift the address one bit to the left */
Address = Address << 1;
/* Reset the address bit0 for write */
Address &= OAR1_ADD0_Reset;
}
/* Send the address */
I2Cx->DR = Address;
}