Compare commits
	
		
			No commits in common. "189f0d4bbbe308f06c528e5d174dff4bf0e77d1a" and "1ef5ba20c8a76525747197d30f3a9a6dd5e8b05f" have entirely different histories.
		
	
	
		
			189f0d4bbb
			...
			1ef5ba20c8
		
	
		
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -18,7 +18,7 @@ class leds:
 | 
				
			||||||
    def __init__(self, mcu: telemetrix_rpi_pico.TelemetrixRpiPico) -> None:
 | 
					    def __init__(self, mcu: telemetrix_rpi_pico.TelemetrixRpiPico) -> None:
 | 
				
			||||||
        self.mcu = mcu
 | 
					        self.mcu = mcu
 | 
				
			||||||
        self.mcu.set_pin_mode_neopixel(LEDS_DATA_PIN, LEDS_NUM)
 | 
					        self.mcu.set_pin_mode_neopixel(LEDS_DATA_PIN, LEDS_NUM)
 | 
				
			||||||
        self.ambient_light = [2, 2, 10] #Keke Image Color
 | 
					        self.ambient_light = [5, 5, 25] #Keke Image Color
 | 
				
			||||||
        self.__update_leds()
 | 
					        self.__update_leds()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def set_headlights(self, state: bool):
 | 
					    def set_headlights(self, state: bool):
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -44,7 +44,7 @@ class sensors:
 | 
				
			||||||
        return self.__humidity
 | 
					        return self.__humidity
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def __light_sensor_callback(self, data):
 | 
					    def __light_sensor_callback(self, data):
 | 
				
			||||||
        self.__brightness = (4096-float(data[2]))/4096*100
 | 
					        self.__brightness = data[2]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def __dht22_callback(self, data):
 | 
					    def __dht22_callback(self, data):
 | 
				
			||||||
        humidity = data[3]
 | 
					        humidity = data[3]
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue