Posted on March 17, 2017 at 10:14Lis2dh connect with stm32l151 on i2c bus.function initial i2c:I2C_DeInit( I2C1 ); RCC_APB1PeriphClockCmd( RCC_APB1Periph_I2C1, ENABLE ); RCC_AHBPeriphClockCmd( RCC_AHBPeriph_GPIOB, ENABLE ); GPIO_PinAFConfig( GPIOB...