Question
I2C send_data
Posted on June 06, 2016 at 09:28
hi,
I'm using stm32f103rct6 to communicate with OPT3001 sensors.I use I2C1 for the configurationto read data from 16bits register it's done but I have problem to send 16bits data.I used this function when I tried to read the same register I find juste one Byte.void I2C_SendData(I2C_TypeDef* I2Cx, uint8_t Data){ /* Check the parameters */ assert_param(IS_I2C_ALL_PERIPH(I2Cx)); /* Write in the DR register the data to be sent */ I2Cx->DR = Data;}have any one solution?thanks