linux c 读取imx6q cpu温度
来源:互联网 发布:sql2005数据库复制 编辑:程序博客网 时间:2024/05/16 13:55
FILE *fp_fan=NULL;
char shu_fan[2]={0};
if((fp_fan=fopen("/sys/devices/virtual/thermal/thermal_zone0/temp","rb"))==NULL)
printf("ddd\n");
fread(shu_fan,sizeof(shu_fan),1,fp_fan);
fclose(fp_fan);
fan_switch=atoi(shu_fan);
free(fp_fan);
Ubuntu shell下,使用如下命令可以读取CPU温度数据:
cat /sys/devices/virtual/thermal/thermal_zone0/temp
阅读全文
0 0
- linux c 读取imx6q cpu温度
- IMX6Q 读取CPU温度命令
- linux下读取cpu核温度。
- 树莓派读取cpu温度
- 读取CPU核心温度
- python C语言文件IO读取树莓派CPU、GPU温度
- Linux下如何通过编程读取cpu温度?
- 嵌入式Linux设备读取CPU温度的方法
- 嵌入式Linux设备读取CPU温度的方法
- LINUX 查看CPU 温度
- Linux 获取CPU温度
- LINUX查看CPU温度
- LINUX查看CPU温度
- linux下CPU温度监测
- LINUX下得到CPU温度
- Linux如何查看CPU温度
- Linux如何查看CPU温度
- 读取树莓派的CPU和GPU温度
- 多态
- 优化MyBatis配置
- Linux Shell 学习笔记(一)
- 56. Merge Intervals
- Hello,world!
- linux c 读取imx6q cpu温度
- 数据结构实验之二叉树一:树的同构
- 红帽系类linux 之 firewall详解
- Selenium Webdriver Desired Capabilities
- 结构体的使用及sort函数
- 腾讯云服务器突然远程连不上
- 面向对象--main函数
- Linux系统调用的实现机制分析
- 视频解析工具