2022-10-23 06:49:59 +00:00
|
|
|
import threading
|
|
|
|
from time import sleep
|
|
|
|
from kuukar_lcd import lcd
|
|
|
|
from kuukar_leds import leds
|
|
|
|
from kuukar_sensors import sensors
|
|
|
|
|
|
|
|
|
2022-10-22 12:39:10 +00:00
|
|
|
class temperature:
|
2022-10-25 07:49:19 +00:00
|
|
|
def __init__(self, lcd: lcd, leds: leds, sensors: sensors) -> None:
|
2022-10-23 06:49:59 +00:00
|
|
|
self.lcd = lcd
|
|
|
|
self.leds = leds
|
|
|
|
self.sensors = sensors
|
|
|
|
threading.Thread(target=self.temperature_checker).start()
|
|
|
|
|
|
|
|
def temperature_checker(self):
|
|
|
|
while True:
|
|
|
|
sleep(5)
|