From 62d0ba805ea2f5fa68dd36088921ac46640b7477 Mon Sep 17 00:00:00 2001 From: DenzelChen <291689742@qq.com> Date: Wed, 22 Dec 2021 09:08:33 +0800 Subject: [PATCH] Update I2CLCD1602.py --- Code/Python_Code/20.1.1_I2CLCD1602/I2CLCD1602.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Code/Python_Code/20.1.1_I2CLCD1602/I2CLCD1602.py b/Code/Python_Code/20.1.1_I2CLCD1602/I2CLCD1602.py index a326d84..2e94454 100644 --- a/Code/Python_Code/20.1.1_I2CLCD1602/I2CLCD1602.py +++ b/Code/Python_Code/20.1.1_I2CLCD1602/I2CLCD1602.py @@ -11,7 +11,7 @@ from Adafruit_LCD1602 import Adafruit_CharLCD from time import sleep, strftime from datetime import datetime -def get_cpu_temp(): # get CPU temperature and store it into file "/sys/class/thermal/thermal_zone0/temp" +def get_cpu_temp(): # get CPU temperature from file "/sys/class/thermal/thermal_zone0/temp" tmp = open('/sys/class/thermal/thermal_zone0/temp') cpu = tmp.read() tmp.close()