[问题] 温度传感器MAX6675的library

楼主: ken1325 (优质水瓶男)   2015-06-05 19:33:14
我手上有一个温度传感器MAX6675模组
然后我去下载这个library来用
http://0rz.tw/C1Z1k
在 MAX6675.cpp 这个档案里
有一段是这样写
/*
Read bits 14-3 from MAX6675 for the Temp. Loop for each bit reading
the value and storing the final value in 'temp'
*/
for (int i=11; i>=0; i
作者: tracetw (((o(*゚▽゚*)o)))   2015-06-05 20:35:00
最低只能到3
楼主: ken1325 (优质水瓶男)   2015-06-05 20:45:00
什么意思?
作者: walter0914 (反反果迷)   2015-06-05 20:50:00
因为你只要左移11次(第12次左移0)就可以得到12bit
楼主: ken1325 (优质水瓶男)   2015-06-05 21:13:00
可是他注解是说要第14个bit欸@@
作者: walter0914 (反反果迷)   2015-06-05 21:33:00
从MSB开始传D15是dummy,接着12个bit就是温度
楼主: ken1325 (优质水瓶男)   2015-06-05 22:22:00
懂了,感谢

Links booklink

Contact Us: admin [ a t ] ucptt.com