Question
I2C question ?
Dear Members,
I tried to initialize I2C in STM32F107
but got the straight line on Logic Analyzer,
I have no idea why ????
The code
void test()
{
data_t[0] = 0x0C; //en=1, rs=0
data_t[1] = 0x08; //en=0, rs=0
data_t[2] = 0x0C; //en=1, rs=0
data_t[3] = 0x08; //en=0, rs=0
HAL_I2C_Master_Transmit(&hi2c1, 0x4E,(uint8_t *) data_t, 4, 100);
} Is it by default in STM32CubeMX, the cpu acts as master ??
I tested PB7 and PB6, they are connected properly into my header pins...
I have no clue why...??


