kuukar-rpi/kuukar_temperature.py

19 lines
521 B
Python

import threading
from time import sleep
from kuukar_lcd import lcd
from kuukar_leds import leds
from kuukar_noise import noise
from kuukar_sensors import sensors
class temperature:
def __init__(self, lcd: lcd, leds: leds, sensors: sensors, noise: noise) -> None:
self.lcd = lcd
self.leds = leds
self.sensors = sensors
self.noise = noise
threading.Thread(target=self.temperature_checker).start()
def temperature_checker(self):
while True:
sleep(5)