Compare commits
2 Commits
1ef5ba20c8
...
189f0d4bbb
Author | SHA1 | Date |
---|---|---|
Siwat Sirichai | 189f0d4bbb | |
Siwat Sirichai | 043241eae1 |
|
@ -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):
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue