直接查看树莓派CPU 温度

版权声明:如需转载请标注 https://blog.csdn.net/weixin_40973138/article/details/84195816

均是shell 命令

1.

/opt/vc/bin/vcgencmd measure_temp

cpu 温度

2.

cat /sys/class/thermal/thermal_zone0/temp

在这里插入图片描述
此处所得数值需除以1000,方可得到cpu 温度,单位是℃

猜你喜欢

转载自blog.csdn.net/weixin_40973138/article/details/84195816