stm32f1对MLX90614ESF读取数据
实测有效,头文件可私聊我发你。voidIIC_Init(void)
{
GPIO_InitTypeDefGPIO_InitStructure;
RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOD|RCC_APB2Periph_GPIOC,ENABLE);//使能GPIOB时钟
GPIO_InitStructure.GPIO_Pin=GPIO_Pin_2;
GPIO_InitStructure.GPIO_Mode=GPIO_Mode_Out_OD;//推挽输出
GPIO_Ini
下载地址
用户评论