kuukar-rpi/kuukar_temperature.py

17 lines
449 B
Python
Raw Normal View History

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:
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)