use_example.c 197 B

12345678910111213
  1. #include <stdio.h>
  2. #include "MLX90614.h"
  3. int main()
  4. {
  5. float tem;
  6. SMBus_Init(); // 初始化
  7. while(1) {
  8. tem = SMBus_ReadTemp(); // 读取温度
  9. printf("tem:%f\n", tem);
  10. delayMs(1000);
  11. }
  12. }