参考:https://blog.csdn.net/zzfenglin/article/details/53915545

#include <ti/devices/cc26x0r2/driverlib/aon_batmon.h>
/*
 *  ======== mainThread ========
 *  Task periodically increments the PWM duty for the on board LED.
 */
#include<stdio.h>
void *mainThread(void *arg0)
{
    int32_t curTemp;
    while(1){
        curTemp  = AONBatMonTemperatureGetDegC();
        printf("curTemp:%d\n",curTemp);
        sleep(1);
    }

}

代码很简单,主要是头文件的路径不太好找!会受芯片温度影响,

CC2640使用内置温度传感器

相关文章:

  • 2021-12-12
  • 2021-12-16
  • 2021-05-23
  • 2021-11-13
  • 2021-06-02
  • 2022-01-07
  • 2021-07-23
猜你喜欢
  • 2021-08-07
  • 2022-12-23
  • 2021-09-27
  • 2021-09-22
  • 2021-08-22
  • 2021-09-07
相关资源
相似解决方案