Update I2CLCD1602.py

This commit is contained in:
DenzelChen
2021-12-22 09:08:33 +08:00
parent b31a7d0306
commit 62d0ba805e
@@ -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()