两种方法:
1、 vcgencmd measure_temp
pi@raspberrypi:~ $ vcgencmd measure_temp
temp=58.5'C
2、 cat /sys/class/thermal/thermal_zone0/temp
pi@raspberrypi:~ $ cat /sys/class/thermal/thermal_zone0/temp
59072
59072/1000 = 59.072摄氏度
两种方法:
1、 vcgencmd measure_temp
pi@raspberrypi:~ $ vcgencmd measure_temp
temp=58.5'C
2、 cat /sys/class/thermal/thermal_zone0/temp
pi@raspberrypi:~ $ cat /sys/class/thermal/thermal_zone0/temp
59072
59072/1000 = 59.072摄氏度