MLX90614 driver 驱动源码
uintreadtemp(void)
{
SCK=0;
start();//开始条件
SendByte(0x00);//发送从地址00
SendByte(0x07);//发送命令
start();//开始条件
SendByte(0x01);//读从地址00
bit_out=0;
tempL=ReadByte();//读数据低字节
bit_out=0;
tempH=ReadByte();//读数据高字节
bit_out=1;
err=ReadByte();//读错误信息码
stop();//停止条件
return(tempH*256+
下载地址
用户评论