Compare commits

...

2 Commits

Author SHA1 Message Date
Siwat Sirichai 189f0d4bbb Change Keke Image Color 2022-11-10 22:33:12 +07:00
Siwat Sirichai 043241eae1 change light sensor value handling 2022-11-10 22:32:59 +07:00
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ class leds:
def __init__(self, mcu: telemetrix_rpi_pico.TelemetrixRpiPico) -> None:
self.mcu = mcu
self.mcu.set_pin_mode_neopixel(LEDS_DATA_PIN, LEDS_NUM)
self.ambient_light = [5, 5, 25] #Keke Image Color
self.ambient_light = [2, 2, 10] #Keke Image Color
self.__update_leds()
def set_headlights(self, state: bool):

View File

@ -44,7 +44,7 @@ class sensors:
return self.__humidity
def __light_sensor_callback(self, data):
self.__brightness = data[2]
self.__brightness = (4096-float(data[2]))/4096*100
def __dht22_callback(self, data):
humidity = data[3]