Update kuukar_sensors.py
This commit is contained in:
parent
90707b2e0f
commit
dc8a2737ec
|
@ -17,7 +17,7 @@ class sensors:
|
|||
self.drv.set_pin_mode_analog_input(SONAR_2_ADC_PIN, 100, self.__sonar_callback)
|
||||
self.drv.set_pin_mode_analog_input(SONAR_3_ADC_PIN, 100, self.__sonar_callback)
|
||||
self.mcu.set_pin_mode_dht(DHT22_PIN, self.__dht22_callback)
|
||||
self.drv.set_pin_mode_analog_input(LIGHT_ANALOG_PIN, 0, self.__light_sensor_callback)
|
||||
self.drv.set_pin_mode_analog_input(LIGHT_SENSOR_PIN, 0, self.__light_sensor_callback)
|
||||
|
||||
def sonar_get_distance(self, id: int) -> float:
|
||||
return self.__sonar_distances[id]
|
||||
|
|
Loading…
Reference in New Issue